diff options
author | Damien Miller <djm@mindrot.org> | 2011-01-12 13:34:02 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2011-01-12 13:34:02 +1100 |
commit | 945aa0c744ea99544fdf7f868ff9cce0193c9fdd (patch) | |
tree | 22ac1411121969c3726c752d580e258947628898 | |
parent | 4927aaf4460de407855676a0ad36bf39704e74a2 (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-- | ChangeLog | 2 | ||||
-rw-r--r-- | configure.ac | 7 |
2 files changed, 6 insertions, 3 deletions
@@ -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 | ||
17 | 20110111 | 19 | 20110111 |
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 | ||
17 | AC_INIT(OpenSSH, Portable, openssh-unix-dev@mindrot.org) | 17 | AC_INIT(OpenSSH, Portable, openssh-unix-dev@mindrot.org) |
18 | AC_REVISION($Revision: 1.461 $) | 18 | AC_REVISION($Revision: 1.462 $) |
19 | AC_CONFIG_SRCDIR([ssh.c]) | 19 | AC_CONFIG_SRCDIR([ssh.c]) |
20 | 20 | ||
21 | AC_CONFIG_HEADER(config.h) | 21 | AC_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 | ||