Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clang 18.1.6 reports the following warnings: CC out/arm/ldelf-lib/libutils/isoc/bget_malloc.o In file included from lib/libutils/isoc/bget_malloc.c:127: lib/libutils/isoc/bget.c:607:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 607 | void *bget(requested_align, hdr_size, requested_size, poolset) | ^ And same with lib/zlib/{adler32.c,inffast.c,inflate.c,zutil.c}. In addition, zutil.c causes: CC out/arm/core/lib/zlib/zutil.o core/lib/zlib/zutil.c:28:33: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes] 28 | const char * ZEXPORT zlibVersion() | ^ | void Add -Wno-deprecated-non-prototype to libutils' bget_malloc.c to silence the first series, and simply remove -Wstrict-prototypes (added by default by mk/compile.mk) when building zlib. Signed-off-by: Jerome Forissier <[email protected]> Acked-by: Joakim Bech <[email protected]> Acked-by: Jens Wiklander <[email protected]>
- Loading branch information