- (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.
This commit is contained in:
Damien Miller 2011-01-12 13:34:02 +11:00
parent 4927aaf446
commit 945aa0c744
2 changed files with 6 additions and 3 deletions

View File

@ -13,6 +13,8 @@
and sanity check arguments (these will be unnecessary when we switch and sanity check arguments (these will be unnecessary when we switch
struct glob members from being type into to size_t in the future); struct glob members from being type into to size_t in the future);
"looks ok" tedu@ feedback guenther@ "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 20110111
- (tim) [regress/host-expand.sh] Fix for building outside of read only - (tim) [regress/host-expand.sh] Fix for building outside of read only

View 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 # Copyright (c) 1999-2004 Damien Miller
# #
@ -15,7 +15,7 @@
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
AC_INIT(OpenSSH, Portable, openssh-unix-dev@mindrot.org) 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_SRCDIR([ssh.c])
AC_CONFIG_HEADER(config.h) AC_CONFIG_HEADER(config.h)
@ -124,7 +124,8 @@ if test "$GCC" = "yes" || test "$GCC" = "egcs"; then
;; ;;
2.*) no_attrib_nonnull=1 ;; 2.*) no_attrib_nonnull=1 ;;
3.*) CFLAGS="$CFLAGS -Wsign-compare -Wformat-security" ;; 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 esac