From: Alejandro Colomar Date: Fri, 5 Dec 2025 17:12:02 +0000 (+0100) Subject: autogen.sh: Enable -Werror=stringop-* diagnostics X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cd72b51ec6e1b62a831e82264c4972f83aeba826;p=thirdparty%2Fshadow.git autogen.sh: Enable -Werror=stringop-* diagnostics We can't enable -Wstringop-overread because it has bogus diagnostics with legitimate strncat(3) calls. We can't enable -Wstringop-truncation because it has bogus diagnostics with legitimate strncpy(3) calls. Link: Reviewed-by: Serge Hallyn Signed-off-by: Alejandro Colomar --- diff --git a/autogen.sh b/autogen.sh index f1740d166..6ffdf2fc0 100755 --- a/autogen.sh +++ b/autogen.sh @@ -14,6 +14,7 @@ CFLAGS="$CFLAGS -Werror=incompatible-pointer-types" CFLAGS="$CFLAGS -Werror=int-conversion" CFLAGS="$CFLAGS -Werror=overflow" CFLAGS="$CFLAGS -Werror=sizeof-pointer-div" +CFLAGS="$CFLAGS -Werror=stringop-overflow=4" CFLAGS="$CFLAGS -Werror=unused-but-set-parameter" CFLAGS="$CFLAGS -Werror=unused-function" CFLAGS="$CFLAGS -Werror=unused-label"