[perfmon2] GCC-14 complains about arguments in a lib/pfmlib_s390x_cpumf.c calloc statement
Status: Beta
Brought to you by:
seranian
From: William C. <wc...@re...> - 2024-01-29 21:33:53
|
Hi, Fedora rawhide is now being built with GCC-14, which is doing additional checking and any warnings are flagged as errors in the fedora build system. Attached is a trivial patch that corrects the order of calloc parameters to avoid the following error: pfmlib_s390x_cpumf.c: In function ‘pfm_cpumcf_init’: pfmlib_s390x_cpumf.c:219:34: error: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument [-Werror=calloc-transposed-args] 219 | cpumcf_pe = calloc(sizeof(*cpumcf_pe), | ^ -Will Cohen |