diff options
| author | Mark Adler <git@madler.net> | 2026-02-08 10:54:46 -0800 |
|---|---|---|
| committer | Mark Adler <git@madler.net> | 2026-02-09 07:09:52 -0800 |
| commit | 8371b539e2a4b2fb8470aacf867e230f256f11e4 (patch) | |
| tree | b40af27e8c9242efb4dc8e1ead52cde5bbe3c7d4 | |
| parent | 8ad678edb44570303996db21c99cba44d0b83d59 (diff) | |
| download | zlib-8371b539e2a4b2fb8470aacf867e230f256f11e4.tar.gz zlib-8371b539e2a4b2fb8470aacf867e230f256f11e4.tar.bz2 zlib-8371b539e2a4b2fb8470aacf867e230f256f11e4.zip | |
Allow --const to be used in configure without --warn.
| -rwxr-xr-x | configure | 10 |
1 files changed, 6 insertions, 4 deletions
| @@ -252,11 +252,13 @@ if test "$gcc" -eq 1 && ($cc -c $test.c) >> configure.log 2>&1; then | |||
| 252 | SFLAGS="${SFLAGS} -m64" | 252 | SFLAGS="${SFLAGS} -m64" |
| 253 | fi | 253 | fi |
| 254 | if test "$warn" -eq 1; then | 254 | if test "$warn" -eq 1; then |
| 255 | if test "$zconst" -eq 1; then | 255 | CFLAGS="${CFLAGS} -Wall -Wextra" |
| 256 | CFLAGS="${CFLAGS} -Wall -Wextra -Wcast-qual -DZLIB_CONST" | 256 | fi |
| 257 | else | 257 | if test "$zconst" -eq 1; then |
| 258 | CFLAGS="${CFLAGS} -Wall -Wextra" | 258 | if test "$warn" -eq 1; then |
| 259 | CFLAGS="${CFLAGS} -Wcast-qual" | ||
| 259 | fi | 260 | fi |
| 261 | CFLAGS="${CFLAGS} -DZLIB_CONST" | ||
| 260 | fi | 262 | fi |
| 261 | if test $address -eq 1; then | 263 | if test $address -eq 1; then |
| 262 | CFLAGS="${CFLAGS} -g -fsanitize=address -fno-omit-frame-pointer" | 264 | CFLAGS="${CFLAGS} -g -fsanitize=address -fno-omit-frame-pointer" |
