From: Mark Andrews Date: Wed, 22 Apr 2020 03:02:18 +0000 (+1000) Subject: Force test for -fno-delete-null-pointer-checks to fail X-Git-Tag: v9.17.2~116^2 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=82ab846f133ea2b237472eb0dd78d000fea19d9d;p=thirdparty%2Fbind9.git Force test for -fno-delete-null-pointer-checks to fail --- diff --git a/configure.ac b/configure.ac index 458bd6cda26..08365ae4771 100644 --- a/configure.ac +++ b/configure.ac @@ -140,7 +140,8 @@ STD_CPPFLAGS="-D_FORTIFY_SOURCE=2" # AX_CHECK_COMPILE_FLAG([-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"]) AX_CHECK_COMPILE_FLAG([-fdiagnostics-show-option], [STD_CFLAGS="$STD_CFLAGS -fdiagnostics-show-option"])