Build: Fix __attribute__((ifunc(...))) detection with clang -Wall.
commita37a2763383e6c204fe878e1416dd35e7711d3a9
authorLasse Collin <lasse.collin@tukaani.org>
Tue, 26 Sep 2023 12:00:43 +0000 (26 15:00 +0300)
committerLasse Collin <lasse.collin@tukaani.org>
Tue, 26 Sep 2023 12:00:43 +0000 (26 15:00 +0300)
treec19810311ace0311b4cbefb1d73f98382cbc6477
parent9c42f936939b813f25d0ff4e99c3eb9c2d17a0d2
Build: Fix __attribute__((ifunc(...))) detection with clang -Wall.

Now if user-supplied CFLAGS contains -Wall -Wextra -Wpedantic
the two checks that need -Werror will still work.

At CMake side there is add_compile_options(-Wall -Wextra)
but it didn't affect the -Werror tests. So with both Autotools
and CMake only user-supplied CFLAGS could make the checks fail
when they shouldn't.

This is not a full fix as things like -Wunused-macros in
user-supplied CFLAGS will still cause problems with both
GCC and Clang.
CMakeLists.txt
configure.ac