diff options
author | Mark Wielaard <mark@klomp.org> | 2024-01-22 00:12:45 +0100 |
---|---|---|
committer | Mark Wielaard <mark@klomp.org> | 2024-01-22 18:19:03 +0100 |
commit | aa5a36b118ade63ebb189a8a51ef5e9c7ea30505 (patch) | |
tree | 570b90f1912d4bccc425e45e6587475c2a5e6c5e /binutils | |
parent | 5bc519bf0c8d34df4fe5e37511a7ddee518684d1 (diff) | |
download | binutils-aa5a36b118ade63ebb189a8a51ef5e9c7ea30505.zip binutils-aa5a36b118ade63ebb189a8a51ef5e9c7ea30505.tar.gz binutils-aa5a36b118ade63ebb189a8a51ef5e9c7ea30505.tar.bz2 |
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
Diffstat (limited to 'binutils')
0 files changed, 0 insertions, 0 deletions