Compiler warnings on GCC 14
apng.c: In function ‘apng_create_info_struct’:
apng.c:74:39: warning: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument [-Wcalloc-transposed-args]
74 | if (( ainfop = calloc(sizeof (apng_info),1) ))
| ^~~~~~~~~
apng.c:74:39: note: earlier argument should specify number of elements, later size of each element
-- string.c ...
-- d_main.c ...
-- dehacked.c ...
-- deh_soc.c ...
d_main.c: In function ‘D_AddFile’:
d_main.c:1027:44: warning: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument [-Wcalloc-transposed-args]
1027 | list->files = calloc(sizeof(list->files), 2); \
| ^
d_main.c:1043:9: note: in expansion of macro ‘REALLOC_FILE_LIST’
1043 | REALLOC_FILE_LIST
| ^~~~~~~~~~~~~~~~~
d_main.c:1027:44: note: earlier argument should specify number of elements, later size of each element
1027 | list->files = calloc(sizeof(list->files), 2); \
| ^
d_main.c:1043:9: note: in expansion of macro ‘REALLOC_FILE_LIST’
1043 | REALLOC_FILE_LIST
| ^~~~~~~~~~~~~~~~~
d_main.c: In function ‘D_AddFolder’:
d_main.c:1027:44: warning: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument [-Wcalloc-transposed-args]
1027 | list->files = calloc(sizeof(list->files), 2); \
| ^
d_main.c:1058:9: note: in expansion of macro ‘REALLOC_FILE_LIST’
1058 | REALLOC_FILE_LIST
| ^~~~~~~~~~~~~~~~~
d_main.c:1027:44: note: earlier argument should specify number of elements, later size of each element
1027 | list->files = calloc(sizeof(list->files), 2); \
| ^
d_main.c:1058:9: note: in expansion of macro ‘REALLOC_FILE_LIST’
1058 | REALLOC_FILE_LIST
| ^~~~~~~~~~~~~~~~~
-- deh_lua.c ...