summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2011-01-12 13:34:02 +1100
committerDamien Miller <djm@mindrot.org>2011-01-12 13:34:02 +1100
commit945aa0c744ea99544fdf7f868ff9cce0193c9fdd (patch)
tree22ac1411121969c3726c752d580e258947628898
parent4927aaf4460de407855676a0ad36bf39704e74a2 (diff)
- (djm) [configure.ac] Turn on -Wno-unused-result for gcc >= 4.4 to avoid
silly warnings on write() calls we don't care succeed or not.
-rw-r--r--ChangeLog2
-rw-r--r--configure.ac7
2 files changed, 6 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 34106ead8..da374f544 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -13,6 +13,8 @@
13 and sanity check arguments (these will be unnecessary when we switch 13 and sanity check arguments (these will be unnecessary when we switch
14 struct glob members from being type into to size_t in the future); 14 struct glob members from being type into to size_t in the future);
15 "looks ok" tedu@ feedback guenther@ 15 "looks ok" tedu@ feedback guenther@
16 - (djm) [configure.ac] Turn on -Wno-unused-result for gcc >= 4.4 to avoid
17 silly warnings on write() calls we don't care succeed or not.
16 18
1720110111 1920110111
18 - (tim) [regress/host-expand.sh] Fix for building outside of read only 20 - (tim) [regress/host-expand.sh] Fix for building outside of read only
diff --git a/configure.ac b/configure.ac
index 0eeb4df78..020634b56 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,4 +1,4 @@
1# $Id: configure.ac,v 1.461 2011/01/03 21:16:29 djm Exp $ 1# $Id: configure.ac,v 1.462 2011/01/12 02:34:02 djm 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.461 $) 18AC_REVISION($Revision: 1.462 $)
19AC_CONFIG_SRCDIR([ssh.c]) 19AC_CONFIG_SRCDIR([ssh.c])
20 20
21AC_CONFIG_HEADER(config.h) 21AC_CONFIG_HEADER(config.h)
@@ -124,7 +124,8 @@ if test "$GCC" = "yes" || test "$GCC" = "egcs"; then
124 ;; 124 ;;
125 2.*) no_attrib_nonnull=1 ;; 125 2.*) no_attrib_nonnull=1 ;;
126 3.*) CFLAGS="$CFLAGS -Wsign-compare -Wformat-security" ;; 126 3.*) CFLAGS="$CFLAGS -Wsign-compare -Wformat-security" ;;
127 4.*) CFLAGS="$CFLAGS -Wsign-compare -Wno-pointer-sign -Wformat-security -fno-strict-aliasing" ;; 127 4.[0123]|4.[0123].*) CFLAGS="$CFLAGS -Wsign-compare -Wno-pointer-sign -Wformat-security -fno-strict-aliasing" ;;
128 4.*) CFLAGS="$CFLAGS -Wsign-compare -Wno-pointer-sign -Wformat-security -fno-strict-aliasing -Wno-unused-result" ;;
128 *) ;; 129 *) ;;
129 esac 130 esac
130 131