From 5799c14c8526bf1aaa130c021982f831d155b46d Mon Sep 17 00:00:00 2001 From: Mark Adler Date: Thu, 13 Apr 2023 20:09:52 -0700 Subject: [PATCH] Turn off C2X warning about deprecated K&R function syntax. This is a temporary workaround before excising the K&R prototypes. --- configure | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure b/configure index fa4d5daa..128b1be8 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}" - SFLAGS="${CFLAGS--O3} -fPIC" + CFLAGS="${CFLAGS--O3} -Wno-deprecated-non-prototype" + SFLAGS="${CFLAGS--O3} -Wno-deprecated-non-prototype -fPIC" if test "$ARCHS"; then CFLAGS="${CFLAGS} ${ARCHS}" LDFLAGS="${LDFLAGS} ${ARCHS}"