2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-09-01 06:55:30 +00:00

Force test for -fno-delete-null-pointer-checks to fail

This commit is contained in:
Mark Andrews
2020-04-22 13:02:18 +10:00
committed by Ondřej Surý
parent d70cba39c6
commit 82ab846f13

View File

@@ -140,7 +140,8 @@ STD_CPPFLAGS="-D_FORTIFY_SOURCE=2"
# #
AX_CHECK_COMPILE_FLAG([-fno-strict-aliasing], AX_CHECK_COMPILE_FLAG([-fno-strict-aliasing],
[STD_CFLAGS="$STD_CFLAGS -fno-strict-aliasing"]) [STD_CFLAGS="$STD_CFLAGS -fno-strict-aliasing"])
AX_CHECK_COMPILE_FLAG([-fno-delete-null-pointer-checks], # Clang only issues a warning so use -Werror to force a error.
AX_CHECK_COMPILE_FLAG([-Werror -fno-delete-null-pointer-checks],
[STD_CFLAGS="$STD_CFLAGS -fno-delete-null-pointer-checks"]) [STD_CFLAGS="$STD_CFLAGS -fno-delete-null-pointer-checks"])
AX_CHECK_COMPILE_FLAG([-fdiagnostics-show-option], AX_CHECK_COMPILE_FLAG([-fdiagnostics-show-option],
[STD_CFLAGS="$STD_CFLAGS -fdiagnostics-show-option"]) [STD_CFLAGS="$STD_CFLAGS -fdiagnostics-show-option"])