- (dtucker) [configure.ac] Enable -Wsizeof-pointer-memaccess if the compiler

supports it.  Mentioned by Colin Watson in bz#2100, ok djm.
This commit is contained in:
Darren Tucker 2013-05-10 13:54:23 +10:00
parent bc02f163f6
commit abbc7a7c02
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,7 @@
20130510
- (dtucker) [configure.ac] Enable -Wsizeof-pointer-memaccess if the compiler
supports it. Mentioned by Colin Watson in bz#2100, ok djm.
20130423
- (djm) [auth.c configure.ac misc.c monitor.c monitor_wrap.c] Support
platforms, such as Android, that lack struct passwd.pw_gecos. Report

View File

@ -1,4 +1,4 @@
# $Id: configure.ac,v 1.521 2013/04/23 04:25:53 djm Exp $
# $Id: configure.ac,v 1.522 2013/05/10 03:54:23 dtucker 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.521 $)
AC_REVISION($Revision: 1.522 $)
AC_CONFIG_SRCDIR([ssh.c])
AC_LANG([C])
@ -134,6 +134,7 @@ if test "$GCC" = "yes" || test "$GCC" = "egcs"; then
OSSH_CHECK_CFLAG_COMPILE([-Wuninitialized])
OSSH_CHECK_CFLAG_COMPILE([-Wsign-compare])
OSSH_CHECK_CFLAG_COMPILE([-Wformat-security])
OSSH_CHECK_CFLAG_COMPILE([-Wsizeof-pointer-memaccess])
OSSH_CHECK_CFLAG_COMPILE([-Wpointer-sign], [-Wno-pointer-sign])
OSSH_CHECK_CFLAG_COMPILE([-Wunused-result], [-Wno-unused-result])
OSSH_CHECK_CFLAG_COMPILE([-fno-strict-aliasing])