summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2013-05-10 18:53:14 +1000
committerDarren Tucker <dtucker@zip.com.au>2013-05-10 18:53:14 +1000
commitc54e3e0741a27119b3badd8ff92b1988b7e9bd50 (patch)
tree29f90166d388c627e3ccb95acd378ce059d2c2ca
parenta75d247a18a5099c60226395354eb252c097ac86 (diff)
- (dtucker) [configure.ac] Add -Werror to the -Qunused-arguments test so
we don't get a warning on compilers that *don't* support it. Add -Wno-unknown-warning-option. Move both to the start of the list for maximum noise suppression. Tested with gcc 4.6.3, gcc 2.95.4 and clang 2.9.
-rw-r--r--ChangeLog4
-rw-r--r--configure.ac9
2 files changed, 10 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index d03a43527..94a23fb1c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -14,6 +14,10 @@
14 in to use it when we're using our own getopt. 14 in to use it when we're using our own getopt.
15 - (dtucker) [kex.c] Only include sha256 and ECC key exchange methods when the 15 - (dtucker) [kex.c] Only include sha256 and ECC key exchange methods when the
16 underlying libraries support them. 16 underlying libraries support them.
17 - (dtucker) [configure.ac] Add -Werror to the -Qunused-arguments test so
18 we don't get a warning on compilers that *don't* support it. Add
19 -Wno-unknown-warning-option. Move both to the start of the list for
20 maximum noise suppression. Tested with gcc 4.6.3, gcc 2.95.4 and clang 2.9.
17 21
1820130423 2220130423
19 - (djm) [auth.c configure.ac misc.c monitor.c monitor_wrap.c] Support 23 - (djm) [auth.c configure.ac misc.c monitor.c monitor_wrap.c] Support
diff --git a/configure.ac b/configure.ac
index 93c50e085..6bcbef638 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,4 +1,4 @@
1# $Id: configure.ac,v 1.522 2013/05/10 03:54:23 dtucker Exp $ 1# $Id: configure.ac,v 1.523 2013/05/10 08:53:14 dtucker Exp $
2# 2#
3# Copyright (c) 1999-2004 Damien Miller 3# Copyright (c) 1999-2004 Damien Miller
4# 4#
@@ -15,7 +15,7 @@
15# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 15# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16 16
17AC_INIT([OpenSSH], [Portable], [openssh-unix-dev@mindrot.org]) 17AC_INIT([OpenSSH], [Portable], [openssh-unix-dev@mindrot.org])
18AC_REVISION($Revision: 1.522 $) 18AC_REVISION($Revision: 1.523 $)
19AC_CONFIG_SRCDIR([ssh.c]) 19AC_CONFIG_SRCDIR([ssh.c])
20AC_LANG([C]) 20AC_LANG([C])
21 21
@@ -129,6 +129,10 @@ AC_ARG_WITH([stackprotect],
129 129
130 130
131if test "$GCC" = "yes" || test "$GCC" = "egcs"; then 131if test "$GCC" = "yes" || test "$GCC" = "egcs"; then
132 OSSH_CHECK_CFLAG_COMPILE([-Qunused-arguments -Werror],
133 [-Qunused-arguments])
134 OSSH_CHECK_CFLAG_COMPILE([-Wunknown-warning-option -Werror],
135 [-Wno-unknown-warning-option])
132 OSSH_CHECK_CFLAG_COMPILE([-Wall]) 136 OSSH_CHECK_CFLAG_COMPILE([-Wall])
133 OSSH_CHECK_CFLAG_COMPILE([-Wpointer-arith]) 137 OSSH_CHECK_CFLAG_COMPILE([-Wpointer-arith])
134 OSSH_CHECK_CFLAG_COMPILE([-Wuninitialized]) 138 OSSH_CHECK_CFLAG_COMPILE([-Wuninitialized])
@@ -138,7 +142,6 @@ if test "$GCC" = "yes" || test "$GCC" = "egcs"; then
138 OSSH_CHECK_CFLAG_COMPILE([-Wpointer-sign], [-Wno-pointer-sign]) 142 OSSH_CHECK_CFLAG_COMPILE([-Wpointer-sign], [-Wno-pointer-sign])
139 OSSH_CHECK_CFLAG_COMPILE([-Wunused-result], [-Wno-unused-result]) 143 OSSH_CHECK_CFLAG_COMPILE([-Wunused-result], [-Wno-unused-result])
140 OSSH_CHECK_CFLAG_COMPILE([-fno-strict-aliasing]) 144 OSSH_CHECK_CFLAG_COMPILE([-fno-strict-aliasing])
141 OSSH_CHECK_CFLAG_COMPILE([-Qunused-arguments])
142 OSSH_CHECK_CFLAG_COMPILE([-D_FORTIFY_SOURCE=2]) 145 OSSH_CHECK_CFLAG_COMPILE([-D_FORTIFY_SOURCE=2])
143 AC_MSG_CHECKING([gcc version]) 146 AC_MSG_CHECKING([gcc version])
144 GCC_VER=`$CC -v 2>&1 | $AWK '/gcc version /{print $3}'` 147 GCC_VER=`$CC -v 2>&1 | $AWK '/gcc version /{print $3}'`