mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-27 04:52:05 +08:00
aa5a36b118
GCC14 warns about the order of the arguments to calloc libsframe/sframe-dump.c: In function ‘dump_sframe_header’: libsframe/sframe-dump.c:70:39: warning: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument [-Wcalloc-transposed-args] 70 | flags_str = (char*) calloc (sizeof (char), SFRAME_HEADER_FLAGS_STR_MAX_LEN); | ^~~~ libsframe/sframe-dump.c:70:39: note: earlier argument should specify number of elements, later size of each element Fix this by swapping the size and count arguments. libsframe/ * sframe-dump.c (dump_sframe_header): Swap arguments to calloc |
||
---|---|---|
.. | ||
doc | ||
testsuite | ||
aclocal.m4 | ||
config.h.in | ||
configure | ||
configure.ac | ||
libsframe.ver | ||
libtool-version | ||
Makefile.am | ||
Makefile.in | ||
sframe-dump.c | ||
sframe-error.c | ||
sframe-impl.h | ||
sframe.c |