Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/share/mk turn off another gcc warning for m68k
details: https://anonhg.NetBSD.org/src/rev/b848a6211dd2
branches: trunk
changeset: 791144:b848a6211dd2
user: christos <christos%NetBSD.org@localhost>
date: Wed Nov 06 19:57:17 2013 +0000
description:
turn off another gcc warning for m68k
diffstat:
share/mk/bsd.sys.mk | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (28 lines):
diff -r 59374c471d75 -r b848a6211dd2 share/mk/bsd.sys.mk
--- a/share/mk/bsd.sys.mk Wed Nov 06 19:56:38 2013 +0000
+++ b/share/mk/bsd.sys.mk Wed Nov 06 19:57:17 2013 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.sys.mk,v 1.229 2013/10/28 01:47:13 mrg Exp $
+# $NetBSD: bsd.sys.mk,v 1.230 2013/11/06 19:57:17 christos Exp $
#
# Build definitions used for NetBSD source tree builds.
@@ -74,7 +74,7 @@
.if ${WARNS} > 3 && defined(HAVE_LLVM)
CFLAGS+= ${${ACTIVE_CC} == "clang":? -Wpointer-sign -Wmissing-noreturn :}
.endif
-.if (defined(HAVE_GCC) && ${HAVE_GCC} == 45 \
+.if (defined(HAVE_GCC) && ${HAVE_GCC} >= 45 \
&& (${MACHINE_ARCH} == "coldfire" || \
${MACHINE_ARCH} == "sh3eb" || \
${MACHINE_ARCH} == "sh3el" || \
@@ -83,6 +83,9 @@
# XXX GCC 4.5 for sh3 and m68k (which we compile with -Os) is extra noisy for
# cases it should be better with
CFLAGS+= -Wno-uninitialized
+.if ${HAVE_GCC} >= 48
+CFLAGS+= -Wno-maybe-uninitialized
+.endif
.endif
.endif
Home |
Main Index |
Thread Index |
Old Index