Module Name: src
Committed By: mrg
Date: Wed Jun 22 02:49:45 UTC 2011
Modified Files:
src/bin/ksh: Makefile
src/crypto/external/bsd/openssh/bin/ssh: Makefile
src/crypto/external/bsd/openssl/bin: Makefile
src/external/bsd/am-utils/bin/amd: Makefile
src/external/bsd/am-utils/bin/hlfsd: Makefile
src/external/bsd/iscsi/initiator: Makefile
src/external/bsd/mdocml/lib/libmandoc: Makefile
src/external/bsd/ntp/bin/ntpd: Makefile
src/external/bsd/ntp/lib/libiscntp: Makefile
src/external/bsd/tcpdump/bin: Makefile
src/games/hack: Makefile
src/lib/libc/rpc: Makefile.inc
src/libexec/ftpd: Makefile
src/regress/sys/kern/getcwd: Makefile
src/sbin/dump_lfs: Makefile
src/sbin/fsdb: Makefile
src/sbin/ifconfig: Makefile
src/sbin/mount_smbfs: Makefile
src/sbin/ping6: Makefile
src/sys/arch/i386/stand/lib: Makefile
src/usr.bin/cap_mkdb: Makefile
src/usr.bin/ftp: Makefile
src/usr.bin/make: Makefile
src/usr.bin/midiplay: Makefile
src/usr.bin/sdpquery: Makefile
src/usr.sbin/altq/libaltq: Makefile
src/usr.sbin/dhcp/omshell: Makefile
src/usr.sbin/fwctl: Makefile
src/usr.sbin/installboot: Makefile
src/usr.sbin/iopctl: Makefile
src/usr.sbin/mlxctl: Makefile
src/usr.sbin/mopd/common: Makefile
Log Message:
apply some -Wno-error and/or -fno-strict-aliasing.
all of this should be looked at closer, but some of them are not
very trivial.
To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 src/bin/ksh/Makefile
cvs rdiff -u -r1.5 -r1.6 src/crypto/external/bsd/openssh/bin/ssh/Makefile
cvs rdiff -u -r1.3 -r1.4 src/crypto/external/bsd/openssl/bin/Makefile
cvs rdiff -u -r1.7 -r1.8 src/external/bsd/am-utils/bin/amd/Makefile
cvs rdiff -u -r1.1 -r1.2 src/external/bsd/am-utils/bin/hlfsd/Makefile
cvs rdiff -u -r1.3 -r1.4 src/external/bsd/iscsi/initiator/Makefile
cvs rdiff -u -r1.1 -r1.2 src/external/bsd/mdocml/lib/libmandoc/Makefile
cvs rdiff -u -r1.8 -r1.9 src/external/bsd/ntp/bin/ntpd/Makefile
cvs rdiff -u -r1.1 -r1.2 src/external/bsd/ntp/lib/libiscntp/Makefile
cvs rdiff -u -r1.5 -r1.6 src/external/bsd/tcpdump/bin/Makefile
cvs rdiff -u -r1.42 -r1.43 src/games/hack/Makefile
cvs rdiff -u -r1.17 -r1.18 src/lib/libc/rpc/Makefile.inc
cvs rdiff -u -r1.61 -r1.62 src/libexec/ftpd/Makefile
cvs rdiff -u -r1.5 -r1.6 src/regress/sys/kern/getcwd/Makefile
cvs rdiff -u -r1.11 -r1.12 src/sbin/dump_lfs/Makefile
cvs rdiff -u -r1.29 -r1.30 src/sbin/fsdb/Makefile
cvs rdiff -u -r1.50 -r1.51 src/sbin/ifconfig/Makefile
cvs rdiff -u -r1.10 -r1.11 src/sbin/mount_smbfs/Makefile
cvs rdiff -u -r1.12 -r1.13 src/sbin/ping6/Makefile
cvs rdiff -u -r1.34 -r1.35 src/sys/arch/i386/stand/lib/Makefile
cvs rdiff -u -r1.8 -r1.9 src/usr.bin/cap_mkdb/Makefile
cvs rdiff -u -r1.33 -r1.34 src/usr.bin/ftp/Makefile
cvs rdiff -u -r1.53 -r1.54 src/usr.bin/make/Makefile
cvs rdiff -u -r1.3 -r1.4 src/usr.bin/midiplay/Makefile
cvs rdiff -u -r1.6 -r1.7 src/usr.bin/sdpquery/Makefile
cvs rdiff -u -r1.10 -r1.11 src/usr.sbin/altq/libaltq/Makefile
cvs rdiff -u -r1.2 -r1.3 src/usr.sbin/dhcp/omshell/Makefile
cvs rdiff -u -r1.4 -r1.5 src/usr.sbin/fwctl/Makefile
cvs rdiff -u -r1.44 -r1.45 src/usr.sbin/installboot/Makefile
cvs rdiff -u -r1.1 -r1.2 src/usr.sbin/iopctl/Makefile
cvs rdiff -u -r1.1 -r1.2 src/usr.sbin/mlxctl/Makefile
cvs rdiff -u -r1.15 -r1.16 src/usr.sbin/mopd/common/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/bin/ksh/Makefile
diff -u src/bin/ksh/Makefile:1.27 src/bin/ksh/Makefile:1.28
--- src/bin/ksh/Makefile:1.27 Thu May 26 12:56:24 2011
+++ src/bin/ksh/Makefile Wed Jun 22 02:49:41 2011
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.27 2011/05/26 12:56:24 joerg Exp $
+# $NetBSD: Makefile,v 1.28 2011/06/22 02:49:41 mrg Exp $
WARNS=3
@@ -50,3 +50,8 @@
CWARNFLAGS.clang+= -Wno-format-security
.include <bsd.prog.mk>
+
+# XXX
+.if ${HAVE_GCC} == 45
+COPTS.eval.c+= -Wno-error
+.endif
Index: src/crypto/external/bsd/openssh/bin/ssh/Makefile
diff -u src/crypto/external/bsd/openssh/bin/ssh/Makefile:1.5 src/crypto/external/bsd/openssh/bin/ssh/Makefile:1.6
--- src/crypto/external/bsd/openssh/bin/ssh/Makefile:1.5 Mon Jun 20 07:43:56 2011
+++ src/crypto/external/bsd/openssh/bin/ssh/Makefile Wed Jun 22 02:49:42 2011
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2011/06/20 07:43:56 mrg Exp $
+# $NetBSD: Makefile,v 1.6 2011/06/22 02:49:42 mrg Exp $
.include <bsd.own.mk>
@@ -36,3 +36,8 @@
.endif
.include <bsd.prog.mk>
+
+# XXX
+.if ${HAVE_GCC} == 45
+COPTS.clientloop.c+= -Wno-error
+.endif
Index: src/crypto/external/bsd/openssl/bin/Makefile
diff -u src/crypto/external/bsd/openssl/bin/Makefile:1.3 src/crypto/external/bsd/openssl/bin/Makefile:1.4
--- src/crypto/external/bsd/openssl/bin/Makefile:1.3 Mon Jun 6 13:43:48 2011
+++ src/crypto/external/bsd/openssl/bin/Makefile Wed Jun 22 02:49:42 2011
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2011/06/06 13:43:48 spz Exp $
+# $NetBSD: Makefile,v 1.4 2011/06/22 02:49:42 mrg Exp $
WARNS?= 2 # XXX -Wcast-qual
@@ -10,7 +10,7 @@
USE_FORT?= yes # cryptographic software
# RCSid:
-# $Id: Makefile,v 1.3 2011/06/06 13:43:48 spz Exp $
+# $Id: Makefile,v 1.4 2011/06/22 02:49:42 mrg Exp $
#
# @(#) Copyright (c) 1995 Simon J. Gerraty
#
@@ -112,3 +112,9 @@
.endif
.include <bsd.prog.mk>
+
+# XXX
+.if ${HAVE_GCC} == 45
+COPTS.s_server.c+= -Wno-error
+COPTS.s_client.c+= -Wno-error
+.endif
Index: src/external/bsd/am-utils/bin/amd/Makefile
diff -u src/external/bsd/am-utils/bin/amd/Makefile:1.7 src/external/bsd/am-utils/bin/amd/Makefile:1.8
--- src/external/bsd/am-utils/bin/amd/Makefile:1.7 Mon Jun 20 07:43:57 2011
+++ src/external/bsd/am-utils/bin/amd/Makefile Wed Jun 22 02:49:42 2011
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.7 2011/06/20 07:43:57 mrg Exp $
+# $NetBSD: Makefile,v 1.8 2011/06/22 02:49:42 mrg Exp $
.include "${.CURDIR}/../Makefile.inc"
@@ -83,3 +83,8 @@
.include <bsd.prog.mk>
+
+# XXX
+.if ${HAVE_GCC} == 45
+COPTS.readdir.c+= -fno-strict-aliasing
+.endif
Index: src/external/bsd/am-utils/bin/hlfsd/Makefile
diff -u src/external/bsd/am-utils/bin/hlfsd/Makefile:1.1 src/external/bsd/am-utils/bin/hlfsd/Makefile:1.2
--- src/external/bsd/am-utils/bin/hlfsd/Makefile:1.1 Fri Sep 19 21:38:40 2008
+++ src/external/bsd/am-utils/bin/hlfsd/Makefile Wed Jun 22 02:49:42 2011
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 2008/09/19 21:38:40 christos Exp $
+# $NetBSD: Makefile,v 1.2 2011/06/22 02:49:42 mrg Exp $
.include "${.CURDIR}/../Makefile.inc"
@@ -14,3 +14,8 @@
LDADD+= ${LIBAMU} -lrpcsvc
.include <bsd.prog.mk>
+
+# XXX
+.if ${HAVE_GCC} == 45
+COPTS.stubs.c+= -fno-strict-aliasing
+.endif
Index: src/external/bsd/iscsi/initiator/Makefile
diff -u src/external/bsd/iscsi/initiator/Makefile:1.3 src/external/bsd/iscsi/initiator/Makefile:1.4
--- src/external/bsd/iscsi/initiator/Makefile:1.3 Thu Sep 23 09:40:23 2010
+++ src/external/bsd/iscsi/initiator/Makefile Wed Jun 22 02:49:42 2011
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2010/09/23 09:40:23 he Exp $
+# $NetBSD: Makefile,v 1.4 2011/06/22 02:49:42 mrg Exp $
.sinclude "${.CURDIR}/../Makefile.inc"
@@ -26,3 +26,8 @@
.endif
.include <bsd.prog.mk>
+
+# XXX
+.if ${HAVE_GCC} == 45
+COPTS.iscsi-initiator.c+= -fno-strict-aliasing
+.endif
Index: src/external/bsd/mdocml/lib/libmandoc/Makefile
diff -u src/external/bsd/mdocml/lib/libmandoc/Makefile:1.1 src/external/bsd/mdocml/lib/libmandoc/Makefile:1.2
--- src/external/bsd/mdocml/lib/libmandoc/Makefile:1.1 Fri Apr 15 14:36:31 2011
+++ src/external/bsd/mdocml/lib/libmandoc/Makefile Wed Jun 22 02:49:42 2011
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 2011/04/15 14:36:31 joerg Exp $
+# $NetBSD: Makefile,v 1.2 2011/06/22 02:49:42 mrg Exp $
LIBISPRIVATE= yes
@@ -11,3 +11,8 @@
MAN= mandoc.3
.include <bsd.lib.mk>
+
+# XXX
+.if ${HAVE_GCC} == 45
+COPTS.mdoc_validate.c+= -Wno-error
+.endif
Index: src/external/bsd/ntp/bin/ntpd/Makefile
diff -u src/external/bsd/ntp/bin/ntpd/Makefile:1.8 src/external/bsd/ntp/bin/ntpd/Makefile:1.9
--- src/external/bsd/ntp/bin/ntpd/Makefile:1.8 Sat Feb 26 19:17:37 2011
+++ src/external/bsd/ntp/bin/ntpd/Makefile Wed Jun 22 02:49:42 2011
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.8 2011/02/26 19:17:37 plunky Exp $
+# $NetBSD: Makefile,v 1.9 2011/06/22 02:49:42 mrg Exp $
#NOGCCERROR=yes
@@ -96,3 +96,7 @@
# kill default .y.c rule - to rebuild ntp_parser.c we need bison which is not part of the toolchain
.y.c:
+# XXX
+.if ${HAVE_GCC} == 45
+COPTS.ntp_request.c+= -Wno-error -fno-strict-aliasing
+.endif
Index: src/external/bsd/ntp/lib/libiscntp/Makefile
diff -u src/external/bsd/ntp/lib/libiscntp/Makefile:1.1 src/external/bsd/ntp/lib/libiscntp/Makefile:1.2
--- src/external/bsd/ntp/lib/libiscntp/Makefile:1.1 Sun Dec 13 17:13:48 2009
+++ src/external/bsd/ntp/lib/libiscntp/Makefile Wed Jun 22 02:49:42 2011
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 2009/12/13 17:13:48 kardel Exp $
+# $NetBSD: Makefile,v 1.2 2011/06/22 02:49:42 mrg Exp $
LIBISPRIVATE=yes
@@ -42,3 +42,8 @@
sockaddr.c
.include <bsd.lib.mk>
+
+# XXX
+.if ${HAVE_GCC} == 45
+COPTS.time.c+= -Wno-error
+.endif
Index: src/external/bsd/tcpdump/bin/Makefile
diff -u src/external/bsd/tcpdump/bin/Makefile:1.5 src/external/bsd/tcpdump/bin/Makefile:1.6
--- src/external/bsd/tcpdump/bin/Makefile:1.5 Thu May 26 12:56:26 2011
+++ src/external/bsd/tcpdump/bin/Makefile Wed Jun 22 02:49:43 2011
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2011/05/26 12:56:26 joerg Exp $
+# $NetBSD: Makefile,v 1.6 2011/06/22 02:49:43 mrg Exp $
WARNS?= 1 # XXX: need to cleanup later
@@ -89,3 +89,8 @@
cp ${.ALLSRC} ${.TARGET}
.include <bsd.prog.mk>
+
+# XXX
+.if ${HAVE_GCC} == 45
+COPTS+= -fno-strict-aliasing
+.endif
Index: src/games/hack/Makefile
diff -u src/games/hack/Makefile:1.42 src/games/hack/Makefile:1.43
--- src/games/hack/Makefile:1.42 Wed Feb 3 15:34:38 2010
+++ src/games/hack/Makefile Wed Jun 22 02:49:43 2011
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.42 2010/02/03 15:34:38 roy Exp $
+# $NetBSD: Makefile,v 1.43 2011/06/22 02:49:43 mrg Exp $
# @(#)Makefile 8.2 (Berkeley) 4/27/95
.include <bsd.own.mk>
@@ -57,3 +57,8 @@
rm -f ${DESTDIR}/var/games/hackdir/bones*
.include <bsd.prog.mk>
+
+# XXX
+.if ${HAVE_GCC} == 45
+COPTS.hack.vault.c+= -fno-strict-aliasing
+.endif
Index: src/lib/libc/rpc/Makefile.inc
diff -u src/lib/libc/rpc/Makefile.inc:1.17 src/lib/libc/rpc/Makefile.inc:1.18
--- src/lib/libc/rpc/Makefile.inc:1.17 Sat Oct 25 19:07:26 2008
+++ src/lib/libc/rpc/Makefile.inc Wed Jun 22 02:49:43 2011
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.inc,v 1.17 2008/10/25 19:07:26 mrg Exp $
+# $NetBSD: Makefile.inc,v 1.18 2011/06/22 02:49:43 mrg Exp $
# librpc sources
.PATH: ${.CURDIR}/rpc
@@ -166,3 +166,8 @@
xdr.3 xdr_vector.3 \
xdr.3 xdr_void.3 \
xdr.3 xdr_wrapstring.3
+
+# XXX
+.if ${HAVE_GCC} == 45 || ${MACHINE} == "vax"
+COPTS.xdr_float.c+= -fno-strict-aliasing
+.endif
Index: src/libexec/ftpd/Makefile
diff -u src/libexec/ftpd/Makefile:1.61 src/libexec/ftpd/Makefile:1.62
--- src/libexec/ftpd/Makefile:1.61 Sun Apr 24 21:42:06 2011
+++ src/libexec/ftpd/Makefile Wed Jun 22 02:49:43 2011
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.61 2011/04/24 21:42:06 elric Exp $
+# $NetBSD: Makefile,v 1.62 2011/06/22 02:49:43 mrg Exp $
# @(#)Makefile 8.2 (Berkeley) 4/4/94
.include <bsd.own.mk>
@@ -52,3 +52,8 @@
#.endif
.include <bsd.prog.mk>
+
+# XXX
+.if ${HAVE_GCC} == 45
+COPTS.conf.c+= -Wno-error
+.endif
Index: src/regress/sys/kern/getcwd/Makefile
diff -u src/regress/sys/kern/getcwd/Makefile:1.5 src/regress/sys/kern/getcwd/Makefile:1.6
--- src/regress/sys/kern/getcwd/Makefile:1.5 Sat Oct 14 21:23:01 2006
+++ src/regress/sys/kern/getcwd/Makefile Wed Jun 22 02:49:43 2011
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2006/10/14 21:23:01 bjh21 Exp $
+# $NetBSD: Makefile,v 1.6 2011/06/22 02:49:43 mrg Exp $
NOMAN= # defined
LDSTATIC= -static
@@ -15,3 +15,8 @@
@find /usr -type d -print | ./getcwd -s
.include <bsd.prog.mk>
+
+# getcwd.c has an on-purpuse array bounds violation
+.if ${HAVE_GCC} == 45
+COPTS.getcwd.c+= -Wno-error
+.endif
Index: src/sbin/dump_lfs/Makefile
diff -u src/sbin/dump_lfs/Makefile:1.11 src/sbin/dump_lfs/Makefile:1.12
--- src/sbin/dump_lfs/Makefile:1.11 Sat Apr 11 07:58:12 2009
+++ src/sbin/dump_lfs/Makefile Wed Jun 22 02:49:43 2011
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.11 2009/04/11 07:58:12 lukem Exp $
+# $NetBSD: Makefile,v 1.12 2011/06/22 02:49:43 mrg Exp $
# @(#)Makefile 8.1 (Berkeley) 6/5/93
# lfs_inode.c LFS filestore-specific routines
@@ -29,3 +29,8 @@
${NETBSDSRCDIR}/sys/ufs/ffs
.include <bsd.prog.mk>
+
+# XXX
+.if ${HAVE_GCC} == 45
+COPTS.lfs_inode.c+= -fno-strict-aliasing
+.endif
Index: src/sbin/fsdb/Makefile
diff -u src/sbin/fsdb/Makefile:1.29 src/sbin/fsdb/Makefile:1.30
--- src/sbin/fsdb/Makefile:1.29 Mon Jun 20 07:44:00 2011
+++ src/sbin/fsdb/Makefile Wed Jun 22 02:49:43 2011
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.29 2011/06/20 07:44:00 mrg Exp $
+# $NetBSD: Makefile,v 1.30 2011/06/22 02:49:43 mrg Exp $
# @(#)Makefile 8.1 (Berkeley) 6/5/93
WARNS?= 3 # XXX: sign-compare issues in ../fsck_ffs
@@ -44,3 +44,8 @@
.endif
.include <bsd.prog.mk>
+
+# XXX
+.if ${HAVE_GCC} == 45
+COPTS.fsdb.c+= -Wno-error
+.endif
Index: src/sbin/ifconfig/Makefile
diff -u src/sbin/ifconfig/Makefile:1.50 src/sbin/ifconfig/Makefile:1.51
--- src/sbin/ifconfig/Makefile:1.50 Mon Dec 13 17:35:08 2010
+++ src/sbin/ifconfig/Makefile Wed Jun 22 02:49:43 2011
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.50 2010/12/13 17:35:08 pooka Exp $
+# $NetBSD: Makefile,v 1.51 2011/06/22 02:49:43 mrg Exp $
# @(#)Makefile 8.1 (Berkeley) 6/5/93
# when making a change to this file, please check if the change is
@@ -32,3 +32,8 @@
.endif
.include <bsd.prog.mk>
+
+# XXX
+.if ${HAVE_GCC} == 45
+COPTS.af_atalk.c+= -fno-strict-aliasing
+.endif
Index: src/sbin/mount_smbfs/Makefile
diff -u src/sbin/mount_smbfs/Makefile:1.10 src/sbin/mount_smbfs/Makefile:1.11
--- src/sbin/mount_smbfs/Makefile:1.10 Sun Sep 6 18:39:04 2009
+++ src/sbin/mount_smbfs/Makefile Wed Jun 22 02:49:44 2011
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.10 2009/09/06 18:39:04 pooka Exp $
+# $NetBSD: Makefile,v 1.11 2011/06/22 02:49:44 mrg Exp $
WARNS?= 3 # XXX: sign-compare issues
@@ -17,3 +17,8 @@
.endif
.include <bsd.prog.mk>
+
+# XXX
+.if ${HAVE_GCC} == 45
+COPTS.rap.c+= -Wno-error
+.endif
Index: src/sbin/ping6/Makefile
diff -u src/sbin/ping6/Makefile:1.12 src/sbin/ping6/Makefile:1.13
--- src/sbin/ping6/Makefile:1.12 Mon May 28 12:06:23 2007
+++ src/sbin/ping6/Makefile Wed Jun 22 02:49:44 2011
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.12 2007/05/28 12:06:23 tls Exp $
+# $NetBSD: Makefile,v 1.13 2011/06/22 02:49:44 mrg Exp $
USE_FORT?= yes # setuid
PROG= ping6
@@ -14,3 +14,8 @@
DPADD+= ${LIBIPSEC} ${LIBM}
.include <bsd.prog.mk>
+
+# XXX
+.if ${HAVE_GCC} == 45
+COPTS.ping6.c+= -fno-strict-aliasing -Wno-error
+.endif
Index: src/sys/arch/i386/stand/lib/Makefile
diff -u src/sys/arch/i386/stand/lib/Makefile:1.34 src/sys/arch/i386/stand/lib/Makefile:1.35
--- src/sys/arch/i386/stand/lib/Makefile:1.34 Tue Jun 7 20:05:46 2011
+++ src/sys/arch/i386/stand/lib/Makefile Wed Jun 22 02:49:44 2011
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.34 2011/06/07 20:05:46 joerg Exp $
+# $NetBSD: Makefile,v 1.35 2011/06/22 02:49:44 mrg Exp $
S?= ${.CURDIR}/../../../..
@@ -73,3 +73,8 @@
@echo building standard ${LIB} library
@rm -f lib${LIB}.o
@${LD} -r -o lib${LIB}.o `lorder ${OBJS} | tsort`
+
+# XXX
+.if ${HAVE_GCC} == 45
+COPTS.biosdisk.c+= -fno-strict-aliasing
+.endif
Index: src/usr.bin/cap_mkdb/Makefile
diff -u src/usr.bin/cap_mkdb/Makefile:1.8 src/usr.bin/cap_mkdb/Makefile:1.9
--- src/usr.bin/cap_mkdb/Makefile:1.8 Tue Apr 14 22:15:18 2009
+++ src/usr.bin/cap_mkdb/Makefile Wed Jun 22 02:49:44 2011
@@ -1,6 +1,11 @@
-# $NetBSD: Makefile,v 1.8 2009/04/14 22:15:18 lukem Exp $
+# $NetBSD: Makefile,v 1.9 2011/06/22 02:49:44 mrg Exp $
# @(#)Makefile 8.1 (Berkeley) 6/6/93
PROG= cap_mkdb
.include <bsd.prog.mk>
+
+# XXX
+.if ${HAVE_GCC} == 45
+COPTS.cap_mkdb.c+= -Wno-error
+.endif
Index: src/usr.bin/ftp/Makefile
diff -u src/usr.bin/ftp/Makefile:1.33 src/usr.bin/ftp/Makefile:1.34
--- src/usr.bin/ftp/Makefile:1.33 Wed Feb 3 15:34:45 2010
+++ src/usr.bin/ftp/Makefile Wed Jun 22 02:49:44 2011
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.33 2010/02/03 15:34:45 roy Exp $
+# $NetBSD: Makefile,v 1.34 2011/06/22 02:49:44 mrg Exp $
# from: @(#)Makefile 8.2 (Berkeley) 4/3/94
.include <bsd.own.mk>
@@ -28,3 +28,9 @@
main.o: ftp_var.h
.include <bsd.prog.mk>
+
+# XXX
+.if ${HAVE_GCC} == 45
+COPTS.main.c+= -Wno-error
+COPTS.ftp.c+= -Wno-error
+.endif
Index: src/usr.bin/make/Makefile
diff -u src/usr.bin/make/Makefile:1.53 src/usr.bin/make/Makefile:1.54
--- src/usr.bin/make/Makefile:1.53 Wed May 18 06:36:48 2011
+++ src/usr.bin/make/Makefile Wed Jun 22 02:49:44 2011
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.53 2011/05/18 06:36:48 dsl Exp $
+# $NetBSD: Makefile,v 1.54 2011/06/22 02:49:44 mrg Exp $
# @(#)Makefile 5.2 (Berkeley) 12/28/90
PROG= make
@@ -49,3 +49,8 @@
# A simple unit-test driver to help catch regressions
accept test:
cd ${.CURDIR}/unit-tests && ${.MAKE} -r -m / TEST_MAKE=${TEST_MAKE:U${.OBJDIR}/${PROG:T}} ${.TARGET}
+
+# XXX
+.if ${HAVE_GCC} == 45
+COPTS.compat.c+= -Wno-error
+.endif
Index: src/usr.bin/midiplay/Makefile
diff -u src/usr.bin/midiplay/Makefile:1.3 src/usr.bin/midiplay/Makefile:1.4
--- src/usr.bin/midiplay/Makefile:1.3 Thu May 26 14:20:22 2011
+++ src/usr.bin/midiplay/Makefile Wed Jun 22 02:49:44 2011
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2011/05/26 14:20:22 joerg Exp $
+# $NetBSD: Makefile,v 1.4 2011/06/22 02:49:44 mrg Exp $
# @(#)Makefile 8.1 (Berkeley) 6/6/93
PROG= midiplay
@@ -6,3 +6,8 @@
CWARNFLAGS.clang+= -Wno-format-extra-args -Wno-initializer-overrides
.include <bsd.prog.mk>
+
+# XXX
+.if ${HAVE_GCC} == 45
+COPTS.midiplay.c+= -Wno-error
+.endif
Index: src/usr.bin/sdpquery/Makefile
diff -u src/usr.bin/sdpquery/Makefile:1.6 src/usr.bin/sdpquery/Makefile:1.7
--- src/usr.bin/sdpquery/Makefile:1.6 Tue May 12 18:37:50 2009
+++ src/usr.bin/sdpquery/Makefile Wed Jun 22 02:49:44 2011
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.6 2009/05/12 18:37:50 plunky Exp $
+# $NetBSD: Makefile,v 1.7 2011/06/22 02:49:44 mrg Exp $
USE_FORT?= yes # network client
@@ -10,3 +10,9 @@
LDADD+= -lbluetooth
.include <bsd.prog.mk>
+
+# XXX
+.if ${HAVE_GCC} == 45
+COPTS.sdpquery.c+= -Wno-error
+COPTS.print.c+= -Wno-error
+.endif
Index: src/usr.sbin/altq/libaltq/Makefile
diff -u src/usr.sbin/altq/libaltq/Makefile:1.10 src/usr.sbin/altq/libaltq/Makefile:1.11
--- src/usr.sbin/altq/libaltq/Makefile:1.10 Wed Apr 15 00:13:50 2009
+++ src/usr.sbin/altq/libaltq/Makefile Wed Jun 22 02:49:45 2011
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.10 2009/04/15 00:13:50 lukem Exp $
+# $NetBSD: Makefile,v 1.11 2011/06/22 02:49:45 mrg Exp $
LIBISPRIVATE= yes
@@ -16,3 +16,8 @@
.endif
.include <bsd.lib.mk>
+
+# XXX
+.if ${HAVE_GCC} == 45
+COPTS.parser.c+= -fno-strict-aliasing
+.endif
Index: src/usr.sbin/dhcp/omshell/Makefile
diff -u src/usr.sbin/dhcp/omshell/Makefile:1.2 src/usr.sbin/dhcp/omshell/Makefile:1.3
--- src/usr.sbin/dhcp/omshell/Makefile:1.2 Thu Aug 16 18:03:04 2001
+++ src/usr.sbin/dhcp/omshell/Makefile Wed Jun 22 02:49:45 2011
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2001/08/16 18:03:04 tv Exp $
+# $NetBSD: Makefile,v 1.3 2011/06/22 02:49:45 mrg Exp $
.include <bsd.own.mk>
@@ -14,3 +14,8 @@
DPADD+= ${CTLOBJDIR}/libdhcpctl.a
.include <bsd.prog.mk>
+
+# XXX
+.if ${HAVE_GCC} == 45
+COPTS.omshell.c+= -Wno-error
+.endif
Index: src/usr.sbin/fwctl/Makefile
diff -u src/usr.sbin/fwctl/Makefile:1.4 src/usr.sbin/fwctl/Makefile:1.5
--- src/usr.sbin/fwctl/Makefile:1.4 Tue Jan 4 20:45:12 2011
+++ src/usr.sbin/fwctl/Makefile Wed Jun 22 02:49:45 2011
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2011/01/04 20:45:12 christos Exp $
+# $NetBSD: Makefile,v 1.5 2011/06/22 02:49:45 mrg Exp $
WARNS?=5
PROG= fwctl
@@ -11,3 +11,8 @@
CPPFLAGS+=-I${.CURDIR} -I${SDIR}
.include <bsd.prog.mk>
+
+# XXX
+.if ${HAVE_GCC} == 45
+COPTS.fwcontrol.c+= -fno-strict-aliasing
+.endif
Index: src/usr.sbin/installboot/Makefile
diff -u src/usr.sbin/installboot/Makefile:1.44 src/usr.sbin/installboot/Makefile:1.45
--- src/usr.sbin/installboot/Makefile:1.44 Mon Jun 20 07:44:02 2011
+++ src/usr.sbin/installboot/Makefile Wed Jun 22 02:49:45 2011
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.44 2011/06/20 07:44:02 mrg Exp $
+# $NetBSD: Makefile,v 1.45 2011/06/22 02:49:45 mrg Exp $
#
.include <bsd.own.mk>
@@ -52,3 +52,8 @@
.endif
.include <bsd.prog.mk>
+
+# XXX
+.if ${HAVE_GCC} == 45
+COPTS.i386.c+= -Wno-error
+.endif
Index: src/usr.sbin/iopctl/Makefile
diff -u src/usr.sbin/iopctl/Makefile:1.1 src/usr.sbin/iopctl/Makefile:1.2
--- src/usr.sbin/iopctl/Makefile:1.1 Mon Dec 11 13:48:53 2000
+++ src/usr.sbin/iopctl/Makefile Wed Jun 22 02:49:45 2011
@@ -1,6 +1,11 @@
-# $NetBSD: Makefile,v 1.1 2000/12/11 13:48:53 ad Exp $
+# $NetBSD: Makefile,v 1.2 2011/06/22 02:49:45 mrg Exp $
PROG= iopctl
MAN= iopctl.8
.include <bsd.prog.mk>
+
+# XXX
+.if ${HAVE_GCC} == 45
+COPTS.iopctl.c+= -fno-strict-aliasing
+.endif
Index: src/usr.sbin/mlxctl/Makefile
diff -u src/usr.sbin/mlxctl/Makefile:1.1 src/usr.sbin/mlxctl/Makefile:1.2
--- src/usr.sbin/mlxctl/Makefile:1.1 Sun Feb 4 17:30:37 2001
+++ src/usr.sbin/mlxctl/Makefile Wed Jun 22 02:49:45 2011
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 2001/02/04 17:30:37 ad Exp $
+# $NetBSD: Makefile,v 1.2 2011/06/22 02:49:45 mrg Exp $
PROG= mlxctl
SRCS= cmds.c config.c dklist.c main.c util.c
@@ -8,3 +8,9 @@
DPADD= ${LIBKVM}
.include <bsd.prog.mk>
+
+# XXX
+.if ${HAVE_GCC} == 45
+COPTS.mlxctl.c+= -fno-strict-aliasing
+COPTS.cmds.c+= -fno-strict-aliasing
+.endif
Index: src/usr.sbin/mopd/common/Makefile
diff -u src/usr.sbin/mopd/common/Makefile:1.15 src/usr.sbin/mopd/common/Makefile:1.16
--- src/usr.sbin/mopd/common/Makefile:1.15 Mon Jun 20 07:44:03 2011
+++ src/usr.sbin/mopd/common/Makefile Wed Jun 22 02:49:45 2011
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.15 2011/06/20 07:44:03 mrg Exp $
+# $NetBSD: Makefile,v 1.16 2011/06/22 02:49:45 mrg Exp $
LIBISPRIVATE= yes
@@ -23,3 +23,8 @@
.if defined(HAVE_GCC) || defined(HAVE_PCC)
COPTS.print.c+= -Wno-pointer-sign
.endif
+
+# XXX
+.if ${HAVE_GCC} == 45
+COPTS.file.c+= -Wno-error
+.endif