From d48dec46f2b634228682fd8782b4b343628326d2 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Wed, 15 Apr 2015 12:39:55 +1000 Subject: [PATCH] 4099. [port] clang: make unknown commandline options hard errors when determining what options are supported. [RT #39273] (cherry picked from commit e840f92bfba0881039f1cdfb3349ecb03382b7be) --- CHANGES | 4 ++++ configure | 4 ++-- configure.in | 4 ++-- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/CHANGES b/CHANGES index 98693cd9f5..5e157c77df 100644 --- 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] diff --git a/configure b/configure index a5b6ca279d..7792d075bc 100755 --- 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. */ diff --git a/configure.in b/configure.in index 632233649e..6850b1b36c 100644 --- a/configure.in +++ b/configure.in @@ -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"