zlib: silence K&R warns

Sponsored by:	Rubicon Communications, LLC ("Netgate")
This commit is contained in:
Mateusz Guzik 2023-02-12 21:12:34 +00:00
parent 10d16789a3
commit eca005d853
2 changed files with 13 additions and 7 deletions

View File

@ -4099,28 +4099,32 @@ libkern/strtouq.c standard
libkern/strvalid.c standard libkern/strvalid.c standard
libkern/timingsafe_bcmp.c standard libkern/timingsafe_bcmp.c standard
contrib/zlib/adler32.c optional crypto | geom_uzip | \ contrib/zlib/adler32.c optional crypto | geom_uzip | \
mxge | ddb_ctf | gzio | zfs | zlib mxge | ddb_ctf | gzio | zfs | zlib \
compile-with "${NORMAL_C} -Wno-deprecated-non-prototype"
contrib/zlib/compress.c optional crypto | geom_uzip | \ contrib/zlib/compress.c optional crypto | geom_uzip | \
mxge | ddb_ctf | gzio | zfs | zlib \ mxge | ddb_ctf | gzio | zfs | zlib \
compile-with "${NORMAL_C} -Wno-cast-qual" compile-with "${NORMAL_C} -Wno-cast-qual -Wno-deprecated-non-prototype"
contrib/zlib/crc32.c optional crypto | geom_uzip | \ contrib/zlib/crc32.c optional crypto | geom_uzip | \
mxge | ddb_ctf | gzio | zfs | zlib \ mxge | ddb_ctf | gzio | zfs | zlib \
compile-with "${NORMAL_C} ${NO_WSTRICT_PROTOTYPES}" compile-with "${NORMAL_C} ${NO_WSTRICT_PROTOTYPES}"
contrib/zlib/deflate.c optional crypto | geom_uzip | \ contrib/zlib/deflate.c optional crypto | geom_uzip | \
mxge | ddb_ctf | gzio | zfs | zlib \ mxge | ddb_ctf | gzio | zfs | zlib \
compile-with "${NORMAL_C} -Wno-cast-qual" compile-with "${NORMAL_C} -Wno-cast-qual -Wno-deprecated-non-prototype"
contrib/zlib/inffast.c optional crypto | geom_uzip | \ contrib/zlib/inffast.c optional crypto | geom_uzip | \
mxge | ddb_ctf | gzio | zfs | zlib mxge | ddb_ctf | gzio | zfs | zlib \
compile-with "${NORMAL_C} -Wno-deprecated-non-prototype"
contrib/zlib/inflate.c optional crypto | geom_uzip | \ contrib/zlib/inflate.c optional crypto | geom_uzip | \
mxge | ddb_ctf | gzio | zfs | zlib mxge | ddb_ctf | gzio | zfs | zlib \
compile-with "${NORMAL_C} -Wno-deprecated-non-prototype"
contrib/zlib/inftrees.c optional crypto | geom_uzip | \ contrib/zlib/inftrees.c optional crypto | geom_uzip | \
mxge | ddb_ctf | gzio | zfs | zlib mxge | ddb_ctf | gzio | zfs | zlib \
compile-with "${NORMAL_C} -Wno-deprecated-non-prototype"
contrib/zlib/trees.c optional crypto | geom_uzip | \ contrib/zlib/trees.c optional crypto | geom_uzip | \
mxge | ddb_ctf | gzio | zfs | zlib \ mxge | ddb_ctf | gzio | zfs | zlib \
compile-with "${NORMAL_C} ${NO_WSTRICT_PROTOTYPES}" compile-with "${NORMAL_C} ${NO_WSTRICT_PROTOTYPES}"
contrib/zlib/uncompr.c optional crypto | geom_uzip | \ contrib/zlib/uncompr.c optional crypto | geom_uzip | \
mxge | ddb_ctf | gzio | zfs | zlib \ mxge | ddb_ctf | gzio | zfs | zlib \
compile-with "${NORMAL_C} -Wno-cast-qual" compile-with "${NORMAL_C} -Wno-cast-qual -Wno-deprecated-non-prototype"
contrib/zlib/zutil.c optional crypto | geom_uzip | \ contrib/zlib/zutil.c optional crypto | geom_uzip | \
mxge | ddb_ctf | gzio | zfs | zlib \ mxge | ddb_ctf | gzio | zfs | zlib \
compile-with "${NORMAL_C} ${NO_WSTRICT_PROTOTYPES}" compile-with "${NORMAL_C} ${NO_WSTRICT_PROTOTYPES}"

View File

@ -25,4 +25,6 @@ CWARNFLAGS.crc32.c+=${NO_WSTRICT_PROTOTYPES} # crc32.c:586
CWARNFLAGS.trees.c+=${NO_WSTRICT_PROTOTYPES} # trees.c:232 CWARNFLAGS.trees.c+=${NO_WSTRICT_PROTOTYPES} # trees.c:232
CWARNFLAGS.zutil.c+=${NO_WSTRICT_PROTOTYPES} # zutil.c:27,32 CWARNFLAGS.zutil.c+=${NO_WSTRICT_PROTOTYPES} # zutil.c:27,32
CWARNFLAGS+=-Wno-deprecated-non-prototype
.include <bsd.kmod.mk> .include <bsd.kmod.mk>