mirror of
https://github.com/opnsense/src.git
synced 2026-06-04 14:26:03 -04:00
stand/zlib: Zlib still uses K&R function definitions
So add ${NO_WDEPRECATED_NON_PROTOTYPE} to the CFLAGS of those
files. This can be removed when we import a zlib that's free of this
anachronism.
Sponsored by: Netflix
Reviewed by: jhb
Differential Revision: https://reviews.freebsd.org/D37516
This commit is contained in:
parent
0ecb616196
commit
983a18021d
1 changed files with 1 additions and 1 deletions
|
|
@ -96,7 +96,7 @@ SRCS+=${i}
|
|||
|
||||
# decompression functionality from zlib
|
||||
.PATH: ${SRCTOP}/sys/contrib/zlib
|
||||
ZLIB_CFLAGS=-DHAVE_MEMCPY -I${SRCTOP}/sys/contrib/zlib
|
||||
ZLIB_CFLAGS=-DHAVE_MEMCPY -I${SRCTOP}/sys/contrib/zlib ${NO_WDEPRECATED_NON_PROTOTYPE}
|
||||
.for i in adler32.c crc32.c infback.c inffast.c inflate.c inftrees.c zutil.c
|
||||
CFLAGS.${i}+=${ZLIB_CFLAGS}
|
||||
SRCS+= ${i}
|
||||
|
|
|
|||
Loading…
Reference in a new issue