summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2007-04-29 14:49:21 +1000
committerDarren Tucker <dtucker@zip.com.au>2007-04-29 14:49:21 +1000
commit391de5c0237a452d7653e88b54c825a5fb468e3a (patch)
treec71827c2486b9d356be5ec2a0a5ec92657703497
parent6d862a50dbe6a473c2e204d85d3e66e6a0293614 (diff)
- (dtucker) [configure.ac defines.h] Prevent warnings about __attribute__
__nonnull__ for versions of GCC that don't support it.
-rw-r--r--ChangeLog8
-rw-r--r--configure.ac17
-rw-r--r--defines.h6
3 files changed, 24 insertions, 7 deletions
diff --git a/ChangeLog b/ChangeLog
index c6db95e39..db5cf6adb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -8,6 +8,12 @@
8 - (dtucker) [openbsd-compat/xmmap.c] Include stdlib.h for mkstemp prototype. 8 - (dtucker) [openbsd-compat/xmmap.c] Include stdlib.h for mkstemp prototype.
9 - (dtucker) [configure.ac defines.h] Have configure check for MAXSYMLINKS 9 - (dtucker) [configure.ac defines.h] Have configure check for MAXSYMLINKS
10 so we don't get redefinition warnings. 10 so we don't get redefinition warnings.
11 - (dtucker) [openbsd-compat/xmmap.c] Include stdlib.h for mkstemp prototype.
12 - (dtucker) [configure.ac defines.h] Prevent warnings about __attribute__
13 __nonnull__ for versions of GCC that don't support it.
14
15 20070406
16 - (dtucker) [INSTALL] Update the systems that have PAM as standard. Link
11 17
1220070406 1820070406
13 - (dtucker) [INSTALL] Update the systems that have PAM as standard. Link 19 - (dtucker) [INSTALL] Update the systems that have PAM as standard. Link
@@ -2889,4 +2895,4 @@
2889 OpenServer 6 and add osr5bigcrypt support so when someone migrates 2895 OpenServer 6 and add osr5bigcrypt support so when someone migrates
2890 passwords between UnixWare and OpenServer they will still work. OK dtucker@ 2896 passwords between UnixWare and OpenServer they will still work. OK dtucker@
2891 2897
2892$Id: ChangeLog,v 1.4656 2007/04/29 04:39:02 dtucker Exp $ 2898$Id: ChangeLog,v 1.4657 2007/04/29 04:49:21 dtucker Exp $
diff --git a/configure.ac b/configure.ac
index f2e88f1f2..c113b2fa7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,4 +1,4 @@
1# $Id: configure.ac,v 1.377 2007/04/29 04:39:03 dtucker Exp $ 1# $Id: configure.ac,v 1.378 2007/04/29 04:49:21 dtucker 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.377 $) 18AC_REVISION($Revision: 1.378 $)
19AC_CONFIG_SRCDIR([ssh.c]) 19AC_CONFIG_SRCDIR([ssh.c])
20 20
21AC_CONFIG_HEADER(config.h) 21AC_CONFIG_HEADER(config.h)
@@ -94,9 +94,12 @@ if test "$GCC" = "yes" || test "$GCC" = "egcs"; then
94 CFLAGS="$CFLAGS -Wall -Wpointer-arith -Wuninitialized" 94 CFLAGS="$CFLAGS -Wall -Wpointer-arith -Wuninitialized"
95 GCC_VER=`$CC -v 2>&1 | $AWK '/gcc version /{print $3}'` 95 GCC_VER=`$CC -v 2>&1 | $AWK '/gcc version /{print $3}'`
96 case $GCC_VER in 96 case $GCC_VER in
97 1.*) ;; 97 1.*) no_attrib_nonnull=1 ;;
98 2.8* | 2.9*) CFLAGS="$CFLAGS -Wsign-compare" ;; 98 2.8* | 2.9*)
99 2.*) ;; 99 CFLAGS="$CFLAGS -Wsign-compare"
100 no_attrib_nonnull=1
101 ;;
102 2.*) no_attrib_nonnull=1 ;;
100 3.*) CFLAGS="$CFLAGS -Wsign-compare" ;; 103 3.*) CFLAGS="$CFLAGS -Wsign-compare" ;;
101 4.*) CFLAGS="$CFLAGS -Wsign-compare -Wno-pointer-sign" ;; 104 4.*) CFLAGS="$CFLAGS -Wsign-compare -Wno-pointer-sign" ;;
102 *) ;; 105 *) ;;
@@ -115,6 +118,10 @@ if test "$GCC" = "yes" || test "$GCC" = "egcs"; then
115 fi 118 fi
116fi 119fi
117 120
121if test "x$no_attrib_nonnull" != "x1" ; then
122 AC_DEFINE(HAVE_ATTRIBUTE__NONNULL__, 1, [Have attribute nonnull])
123fi
124
118AC_ARG_WITH(rpath, 125AC_ARG_WITH(rpath,
119 [ --without-rpath Disable auto-added -R linker paths], 126 [ --without-rpath Disable auto-added -R linker paths],
120 [ 127 [
diff --git a/defines.h b/defines.h
index 41b14fdf7..5e75bc624 100644
--- a/defines.h
+++ b/defines.h
@@ -25,7 +25,7 @@
25#ifndef _DEFINES_H 25#ifndef _DEFINES_H
26#define _DEFINES_H 26#define _DEFINES_H
27 27
28/* $Id: defines.h,v 1.140 2007/04/29 04:39:03 dtucker Exp $ */ 28/* $Id: defines.h,v 1.141 2007/04/29 04:49:21 dtucker Exp $ */
29 29
30 30
31/* Constants */ 31/* Constants */
@@ -449,6 +449,10 @@ struct winsize {
449# define __bounded__(x, y, z) 449# define __bounded__(x, y, z)
450#endif 450#endif
451 451
452#if !defined(HAVE_ATTRIBUTE__NONNULL__) && !defined(__nonnull__)
453# define __nonnull__(x)
454#endif
455
452/* *-*-nto-qnx doesn't define this macro in the system headers */ 456/* *-*-nto-qnx doesn't define this macro in the system headers */
453#ifdef MISSING_HOWMANY 457#ifdef MISSING_HOWMANY
454# define howmany(x,y) (((x)+((y)-1))/(y)) 458# define howmany(x,y) (((x)+((y)-1))/(y))