]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
4099. [port] clang: make unknown commandline options hard errors
authorMark Andrews <marka@isc.org>
Wed, 15 Apr 2015 02:39:55 +0000 (12:39 +1000)
committerMark Andrews <marka@isc.org>
Wed, 15 Apr 2015 02:39:55 +0000 (12:39 +1000)
                        when determining what options are supported.
                        [RT #39273]

CHANGES
configure
configure.in

diff --git a/CHANGES b/CHANGES
index 2ffdf0ddfea17bf003a6b6e33a3cf265b93e2b2f..8ef0795d73a05f135fb348c91a6b7be55416d496 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,7 @@
+4099.  [port]          clang: make unknown commandline options hard errors
+                       when determining what options are supported.
+                       [RT #39273]
+
 4098.  [bug]           Address use-after-free issue when using a
                        predecessor key with dnssec-settime. [RT #39272]
 
index a4766f5d59d979f83eef5c8354c6212d333a9abe..816cc0820b86a3ad991a172307563680186f5f56 100755 (executable)
--- a/configure
+++ b/configure
@@ -16833,7 +16833,7 @@ if test "X$GCC" = "Xyes"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if \"$CC\" supports -fno-strict-aliasing" >&5
 $as_echo_n "checking if \"$CC\" supports -fno-strict-aliasing... " >&6; }
        SAVE_CFLAGS="$CFLAGS"
-       CFLAGS="$CFLAGS -fno-strict-aliasing"
+       CFLAGS="$CFLAGS -Werror -fno-strict-aliasing"
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 
@@ -16866,7 +16866,7 @@ $as_echo "no" >&6; }
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if \"$CC\" supports -fno-delete-null-pointer-checks" >&5
 $as_echo_n "checking if \"$CC\" supports -fno-delete-null-pointer-checks... " >&6; }
        SAVE_CFLAGS="$CFLAGS"
-       CFLAGS="$CFLAGS -fno-delete-null-pointer-checks"
+       CFLAGS="$CFLAGS -Werror -fno-delete-null-pointer-checks"
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 
index 66373ff6cfeff8f44c143b56e64ec555b80e567f..26a7f4b2bda568700c91c992f927d4121184d6b2 100644 (file)
@@ -2263,7 +2263,7 @@ if test "X$GCC" = "Xyes"; then
        STD_CWARNINGS="$STD_CWARNINGS -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith"
        AC_MSG_CHECKING(if "$CC" supports -fno-strict-aliasing)
        SAVE_CFLAGS="$CFLAGS"
-       CFLAGS="$CFLAGS -fno-strict-aliasing"
+       CFLAGS="$CFLAGS -Werror -fno-strict-aliasing"
        AC_TRY_COMPILE(,, [FNOSTRICTALIASING=yes],[FNOSTRICTALIASING=no])
        CFLAGS="$SAVE_CFLAGS"
        if test "$FNOSTRICTALIASING" = "yes"; then
@@ -2277,7 +2277,7 @@ if test "X$GCC" = "Xyes"; then
        #
        AC_MSG_CHECKING(if "$CC" supports -fno-delete-null-pointer-checks)
        SAVE_CFLAGS="$CFLAGS"
-       CFLAGS="$CFLAGS -fno-delete-null-pointer-checks"
+       CFLAGS="$CFLAGS -Werror -fno-delete-null-pointer-checks"
        AC_TRY_COMPILE(,, [FNODELETENULLPOINTERCHECKS=yes],
                          [FNODELETENULLPOINTERCHECKS=no])
        CFLAGS="$SAVE_CFLAGS"