diff options
author | Mark Adler <madler@alumni.caltech.edu> | 2023-04-14 01:42:03 -0700 |
---|---|---|
committer | Mark Adler <madler@alumni.caltech.edu> | 2023-04-15 21:17:31 -0700 |
commit | e9d5486e6635141f589e110fd789648aa08e9544 (patch) | |
tree | a78b9ccd92b05af7cd5776b688d9c3eb3a81a40a /configure | |
parent | 5799c14c8526bf1aaa130c021982f831d155b46d (diff) | |
download | zlib-e9d5486e6635141f589e110fd789648aa08e9544.tar.gz zlib-e9d5486e6635141f589e110fd789648aa08e9544.tar.bz2 zlib-e9d5486e6635141f589e110fd789648aa08e9544.zip |
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.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -194,8 +194,8 @@ show $cc -c $test.c | |||
194 | if test "$gcc" -eq 1 && ($cc -c $test.c) >> configure.log 2>&1; then | 194 | if 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} -Wno-deprecated-non-prototype" | 197 | CFLAGS="${CFLAGS--O3}" |
198 | SFLAGS="${CFLAGS--O3} -Wno-deprecated-non-prototype -fPIC" | 198 | SFLAGS="${CFLAGS--O3} -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}" |