From e9d5486e6635141f589e110fd789648aa08e9544 Mon Sep 17 00:00:00 2001 From: Mark Adler Date: Fri, 14 Apr 2023 01:42:03 -0700 Subject: Remove K&R function definitions from zlib. C2X has removed K&R definitions from the C function syntax. Though the standard has not yet been approved, some high-profile compilers are now issuing warnings when such definitions are encountered. --- configure | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'configure') diff --git a/configure b/configure index 128b1be..fa4d5da 100755 --- a/configure +++ b/configure @@ -194,8 +194,8 @@ show $cc -c $test.c if test "$gcc" -eq 1 && ($cc -c $test.c) >> configure.log 2>&1; then echo ... using gcc >> configure.log CC="$cc" - CFLAGS="${CFLAGS--O3} -Wno-deprecated-non-prototype" - SFLAGS="${CFLAGS--O3} -Wno-deprecated-non-prototype -fPIC" + CFLAGS="${CFLAGS--O3}" + SFLAGS="${CFLAGS--O3} -fPIC" if test "$ARCHS"; then CFLAGS="${CFLAGS} ${ARCHS}" LDFLAGS="${LDFLAGS} ${ARCHS}" -- cgit v1.2.3-55-g6feb