Commit 8371b53 for zlib

commit 8371b539e2a4b2fb8470aacf867e230f256f11e4
Author: Mark Adler <git@madler.net>
Date:   Sun Feb 8 10:54:46 2026 -0800

    Allow --const to be used in configure without --warn.

diff --git a/configure b/configure
index daa4aa7..27c77c0 100755
--- a/configure
+++ b/configure
@@ -252,11 +252,13 @@ if test "$gcc" -eq 1 && ($cc -c $test.c) >> configure.log 2>&1; then
     SFLAGS="${SFLAGS} -m64"
   fi
   if test "$warn" -eq 1; then
-    if test "$zconst" -eq 1; then
-      CFLAGS="${CFLAGS} -Wall -Wextra -Wcast-qual -DZLIB_CONST"
-    else
-      CFLAGS="${CFLAGS} -Wall -Wextra"
+    CFLAGS="${CFLAGS} -Wall -Wextra"
+  fi
+  if test "$zconst" -eq 1; then
+    if test "$warn" -eq 1; then
+      CFLAGS="${CFLAGS} -Wcast-qual"
     fi
+    CFLAGS="${CFLAGS} -DZLIB_CONST"
   fi
   if test $address -eq 1; then
     CFLAGS="${CFLAGS} -g -fsanitize=address -fno-omit-frame-pointer"