]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
autogen.sh: CFLAGS: Promote -Wdiscarded-qualifiers to an error
authorAlejandro Colomar <alx@kernel.org>
Thu, 20 Feb 2025 16:16:13 +0000 (17:16 +0100)
committerSerge Hallyn <serge@hallyn.com>
Fri, 5 Dec 2025 02:35:51 +0000 (20:35 -0600)
Signed-off-by: Alejandro Colomar <alx@kernel.org>
autogen.sh

index 8253865937bc7d3c45edf53f72629f988439e5c4..9545df6acfc8964216c834528f1b38845eb6e0d5 100755 (executable)
@@ -5,6 +5,7 @@ autoreconf -v -f --install "$(dirname "$0")" || exit 1
 CFLAGS="-O2"
 CFLAGS="$CFLAGS -Wall"
 CFLAGS="$CFLAGS -Wextra"
+CFLAGS="$CFLAGS -Werror=discarded-qualifiers"
 CFLAGS="$CFLAGS -Werror=implicit-function-declaration"
 CFLAGS="$CFLAGS -Werror=implicit-int"
 CFLAGS="$CFLAGS -Werror=incompatible-pointer-types"