aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2023-04-13 20:09:52 -0700
committerMark Adler <madler@alumni.caltech.edu>2023-04-13 20:09:52 -0700
commit5799c14c8526bf1aaa130c021982f831d155b46d (patch)
treec8027a1a6349f51ab5eadc5e7ef4b680ec322752 /configure
parent7e6dc429af8e430e3ae5e748fb34dd61128c5546 (diff)
downloadzlib-5799c14c8526bf1aaa130c021982f831d155b46d.tar.gz
zlib-5799c14c8526bf1aaa130c021982f831d155b46d.tar.bz2
zlib-5799c14c8526bf1aaa130c021982f831d155b46d.zip
Turn off C2X warning about deprecated K&R function syntax.
This is a temporary workaround before excising the K&R prototypes.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure4
1 files changed, 2 insertions, 2 deletions
diff --git a/configure b/configure
index fa4d5da..128b1be 100755
--- a/configure
+++ b/configure
@@ -194,8 +194,8 @@ show $cc -c $test.c
194if test "$gcc" -eq 1 && ($cc -c $test.c) >> configure.log 2>&1; then 194if test "$gcc" -eq 1 && ($cc -c $test.c) >> configure.log 2>&1; then
195 echo ... using gcc >> configure.log 195 echo ... using gcc >> configure.log
196 CC="$cc" 196 CC="$cc"
197 CFLAGS="${CFLAGS--O3}" 197 CFLAGS="${CFLAGS--O3} -Wno-deprecated-non-prototype"
198 SFLAGS="${CFLAGS--O3} -fPIC" 198 SFLAGS="${CFLAGS--O3} -Wno-deprecated-non-prototype -fPIC"
199 if test "$ARCHS"; then 199 if test "$ARCHS"; then
200 CFLAGS="${CFLAGS} ${ARCHS}" 200 CFLAGS="${CFLAGS} ${ARCHS}"
201 LDFLAGS="${LDFLAGS} ${ARCHS}" 201 LDFLAGS="${LDFLAGS} ${ARCHS}"