]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
- (djm) [configure.ac] Turn on -Wno-unused-result for gcc >= 4.4 to avoid
authorDamien Miller <djm@mindrot.org>
Wed, 12 Jan 2011 02:34:02 +0000 (13:34 +1100)
committerDamien Miller <djm@mindrot.org>
Wed, 12 Jan 2011 02:34:02 +0000 (13:34 +1100)
   silly warnings on write() calls we don't care succeed or not.

ChangeLog
configure.ac

index 34106ead82a9ce39dadf334625d9d7b71eaf2afc..da374f544eb07de757a4ad942c8cd5154f666cd1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -13,6 +13,8 @@
      and sanity check arguments (these will be unnecessary when we switch
      struct glob members from being type into to size_t in the future);
      "looks ok" tedu@ feedback guenther@
+ - (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.
 
 20110111
  - (tim) [regress/host-expand.sh] Fix for building outside of read only
index 0eeb4df78d50e5871c28685d80dce46c8da961f1..020634b5608cdeb4926fa22a621f8c772a64e55f 100644 (file)
@@ -1,4 +1,4 @@
-# $Id: configure.ac,v 1.461 2011/01/03 21:16:29 djm Exp $
+# $Id: configure.ac,v 1.462 2011/01/12 02:34:02 djm Exp $
 #
 # Copyright (c) 1999-2004 Damien Miller
 #
@@ -15,7 +15,7 @@
 # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 
 AC_INIT(OpenSSH, Portable, openssh-unix-dev@mindrot.org)
-AC_REVISION($Revision: 1.461 $)
+AC_REVISION($Revision: 1.462 $)
 AC_CONFIG_SRCDIR([ssh.c])
 
 AC_CONFIG_HEADER(config.h)
@@ -124,7 +124,8 @@ if test "$GCC" = "yes" || test "$GCC" = "egcs"; then
                     ;;
                2.*) no_attrib_nonnull=1 ;;
                3.*) CFLAGS="$CFLAGS -Wsign-compare -Wformat-security" ;;
-               4.*) CFLAGS="$CFLAGS -Wsign-compare -Wno-pointer-sign -Wformat-security -fno-strict-aliasing" ;;
+               4.[0123]|4.[0123].*) CFLAGS="$CFLAGS -Wsign-compare -Wno-pointer-sign -Wformat-security -fno-strict-aliasing" ;;
+               4.*) CFLAGS="$CFLAGS -Wsign-compare -Wno-pointer-sign -Wformat-security -fno-strict-aliasing -Wno-unused-result" ;;
                *) ;;
        esac