Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src add some XXX'd -Wno-foo if HAVE_GCC >= 45.



details:   https://anonhg.NetBSD.org/src/rev/b82922499850
branches:  trunk
changeset: 766343:b82922499850
user:      mrg <mrg%NetBSD.org@localhost>
date:      Tue Jun 21 02:32:55 2011 +0000

description:
add some XXX'd -Wno-foo if HAVE_GCC >= 45.

XXX: someone should look at these.

diffstat:

 external/bsd/fetch/lib/Makefile |   7 ++++++-
 lib/libc/Makefile               |   9 ++++++++-
 lib/libedit/Makefile            |  11 +++++++++--
 lib/libisns/Makefile            |   6 +++++-
 lib/libpam/libpam/Makefile      |   7 ++++++-
 5 files changed, 34 insertions(+), 6 deletions(-)

diffs (101 lines):

diff -r 63701ce4ecab -r b82922499850 external/bsd/fetch/lib/Makefile
--- a/external/bsd/fetch/lib/Makefile   Tue Jun 21 02:19:30 2011 +0000
+++ b/external/bsd/fetch/lib/Makefile   Tue Jun 21 02:32:55 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2009/10/20 01:21:28 joerg Exp $
+# $NetBSD: Makefile,v 1.6 2011/06/21 02:32:55 mrg Exp $
 
 LIB=           fetch
 SRCS=          fetch.c common.c ftp.c http.c file.c
@@ -37,3 +37,8 @@
            ${LIBFETCHDIR}/http.errors > ${.TARGET}
 
 .include <bsd.lib.mk>
+
+.if ${HAVE_GCC} == 45
+# XXX
+COPTS.ftp.c+=  -Wno-array-bounds
+.endif
diff -r 63701ce4ecab -r b82922499850 lib/libc/Makefile
--- a/lib/libc/Makefile Tue Jun 21 02:19:30 2011 +0000
+++ b/lib/libc/Makefile Tue Jun 21 02:32:55 2011 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.146 2011/06/19 11:31:55 nakayama Exp $
+#      $NetBSD: Makefile,v 1.147 2011/06/21 02:32:55 mrg Exp $
 #      @(#)Makefile    8.2 (Berkeley) 2/3/94
 #
 # All library objects contain sccsid strings by default; they may be
@@ -147,3 +147,10 @@
 # force the dynamic linker to initialize libc first
 SHLIB_SHFLAGS+=        -Wl,-z,initfirst
 
+# XXX
+.if ${HAVE_GCC} >= 45
+COPTS.res_comp.c+= -Wno-cast-qual
+COPTS.vfwprintf.c+= -Wno-cast-qual
+COPTS.vfprintf.c+= -Wno-cast-qual
+COPTS.vswprintf.c+= -Wno-cast-qual
+.endif
diff -r 63701ce4ecab -r b82922499850 lib/libedit/Makefile
--- a/lib/libedit/Makefile      Tue Jun 21 02:19:30 2011 +0000
+++ b/lib/libedit/Makefile      Tue Jun 21 02:32:55 2011 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.41 2010/02/03 15:34:43 roy Exp $
+#      $NetBSD: Makefile,v 1.42 2011/06/21 02:32:55 mrg Exp $
 #      @(#)Makefile    8.1 (Berkeley) 6/4/93
 
 USE_SHLIBDIR=  yes
@@ -113,10 +113,17 @@
            mv ${.TARGET}.tmp ${.TARGET}
 
 tc1.o: ${LIBEDITDIR}/TEST/tc1.c
-       
+
 tc1:   libedit.a tc1.o 
        ${_MKTARGET_LINK}
        ${CC} ${LDFLAGS} ${.ALLSRC} -o ${.TARGET} libedit.a ${LDADD} -ltermlib
 
 .include <bsd.lib.mk>
 .include <bsd.subdir.mk>
+
+# XXX
+.if ${HAVE_GCC} >= 45
+COPTS.editline.c+=     -Wno-cast-qual
+COPTS.tokenizer.c+=    -Wno-cast-qual
+COPTS.tokenizern.c+=   -Wno-cast-qual
+.endif
diff -r 63701ce4ecab -r b82922499850 lib/libisns/Makefile
--- a/lib/libisns/Makefile      Tue Jun 21 02:19:30 2011 +0000
+++ b/lib/libisns/Makefile      Tue Jun 21 02:32:55 2011 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.1.1.1 2011/01/16 01:22:50 agc Exp $
+#      $NetBSD: Makefile,v 1.2 2011/06/21 02:32:55 mrg Exp $
 
 .include <bsd.own.mk>
 
@@ -14,3 +14,7 @@
 WARNS= 4
 
 .include <bsd.lib.mk>
+
+.if ${HAVE_GCC} >= 45
+COPTS.isns_pdu.c+=     -fno-strict-aliasing
+.endif
diff -r 63701ce4ecab -r b82922499850 lib/libpam/libpam/Makefile
--- a/lib/libpam/libpam/Makefile        Tue Jun 21 02:19:30 2011 +0000
+++ b/lib/libpam/libpam/Makefile        Tue Jun 21 02:32:55 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.11 2010/12/10 20:06:17 joerg Exp $
+# $NetBSD: Makefile,v 1.12 2011/06/21 02:32:55 mrg Exp $
 #-
 # Copyright (c) 1998 Juniper Networks, Inc.
 # All rights reserved.
@@ -191,3 +191,8 @@
 .PATH.h: ${DIST}/include
 .PATH.c: ${DIST}/lib
 .PATH.3: ${DIST}/doc/man
+
+# XXX
+.if ${HAVE_GCC} >= 45
+COPTS.openpam_dispatch.c+=     -Wno-cast-qual
+.endif



Home | Main Index | Thread Index | Old Index