binutils-gdb/libsframe
Mark Wielaard aa5a36b118 libsframe: Fix calloc argument order in dump_sframe_header
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
2024-01-22 18:19:03 +01:00
..
doc Update year range in copyright notice of binutils files 2024-01-04 22:58:12 +10:30
testsuite Update year range in copyright notice of binutils files 2024-01-04 22:58:12 +10:30
aclocal.m4
config.h.in
configure regen config 2023-08-12 10:27:57 +09:30
configure.ac Update year range in copyright notice of binutils files 2024-01-04 22:58:12 +10:30
libsframe.ver sframe: bfd: gas: ld: format bump to SFrame version 2 2023-06-29 16:31:58 -07:00
libtool-version libsframe: add library versioning 2023-06-27 12:01:56 -07:00
Makefile.am Update year range in copyright notice of binutils files 2024-01-04 22:58:12 +10:30
Makefile.in Update year range in copyright notice of binutils files 2024-01-04 22:58:12 +10:30
sframe-dump.c libsframe: Fix calloc argument order in dump_sframe_header 2024-01-22 18:19:03 +01:00
sframe-error.c Update year range in copyright notice of binutils files 2024-01-04 22:58:12 +10:30
sframe-impl.h Update year range in copyright notice of binutils files 2024-01-04 22:58:12 +10:30
sframe.c Update year range in copyright notice of binutils files 2024-01-04 22:58:12 +10:30