From: Alejandro Colomar Date: Fri, 1 Sep 2023 16:57:41 +0000 (+0200) Subject: autogen.sh: CFLAGS: Add -Werror=implicit-function-declaration X-Git-Tag: 4.15.0-rc1~149 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a6d795bac5fa0ea1bac8c89925670f6e20fd3c01;p=thirdparty%2Fshadow.git autogen.sh: CFLAGS: Add -Werror=implicit-function-declaration This is not just a style issue. This should be a hard error, and never compile. ISO C89 already had this feature as deprecated. ISO C99 removed this deprecated feature, for good reasons. If we compile ignoring this warning, shadow is not going to behave well. Cc: Sam James Reviewed-by: Iker Pedrosa Signed-off-by: Alejandro Colomar --- diff --git a/autogen.sh b/autogen.sh index 881e9770c..eb30a9a16 100755 --- a/autogen.sh +++ b/autogen.sh @@ -3,7 +3,7 @@ autoreconf -v -f --install "$(dirname "$0")" || exit 1 "$(dirname "$0")"/configure \ - CFLAGS="-O2 -Wall" \ + CFLAGS="-O2 -Wall -Werror=implicit-function-declaration" \ --enable-lastlog \ --enable-man \ --enable-maintainer-mode \