]> git.ipfire.org Git - thirdparty/shadow.git/commit
autogen.sh: CFLAGS: Add some -Werror=... flags that will be default soon
authorAlejandro Colomar <alx@kernel.org>
Mon, 22 Jan 2024 21:25:34 +0000 (22:25 +0100)
committerIker Pedrosa <ikerpedrosam@gmail.com>
Fri, 26 Jan 2024 08:40:10 +0000 (09:40 +0100)
commitd74ffd3c2991367fbcfcbd51b258008261ca86b8
tree46cc03f338473633c41d5cdef79814c9295d2f27
parentd452d1b812456826d63b90f39ea029309b64ff43
autogen.sh: CFLAGS: Add some -Werror=... flags that will be default soon

Clang 16 and GCC 14 have upgraded several warnings to errors by default.
Also, there are new warnings that will be requirements of ISO C23.  Add
all of those to our build.

Use Clang's -Wno-unknown-attribute-option, to ignore warnings that are
exclusive of GCC.  Sadly, GCC doesn't have such an option.

Link: <https://wiki.gentoo.org/wiki/Modern_C_porting#What_changed.3F>
Link: <https://github.com/shadow-maint/shadow/issues/922>
Suggested-by: Sam James <sam@gentoo.org>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
autogen.sh