diff options
author | Alejandro Colomar <alx@kernel.org> | 2023-09-01 18:57:41 +0200 |
---|---|---|
committer | Alejandro Colomar <alx@kernel.org> | 2023-10-20 21:05:33 +0200 |
commit | a6d795bac5fa0ea1bac8c89925670f6e20fd3c01 (patch) | |
tree | ef35f3ebd134f973d8140b429ac157467e2b64e4 | |
parent | d5e1c1e475b0098ce65520576e6d8d339b15939e (diff) |
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 <sam@gentoo.org>
Reviewed-by: Iker Pedrosa <ipedrosa@redhat.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
-rwxr-xr-x | autogen.sh | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 \ |