Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/conf force -Wno-uninitialized if the compiler is gcc 2.95
details: https://anonhg.NetBSD.org/src/rev/49ca3b104dde
branches: trunk
changeset: 554988:49ca3b104dde
user: jdolecek <jdolecek%NetBSD.org@localhost>
date: Thu Nov 06 08:23:22 2003 +0000
description:
force -Wno-uninitialized if the compiler is gcc 2.95
diffstat:
sys/conf/Makefile.kern.inc | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diffs (23 lines):
diff -r 3bff2105a4fe -r 49ca3b104dde sys/conf/Makefile.kern.inc
--- a/sys/conf/Makefile.kern.inc Thu Nov 06 07:13:33 2003 +0000
+++ b/sys/conf/Makefile.kern.inc Thu Nov 06 08:23:22 2003 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.kern.inc,v 1.41 2003/10/29 21:29:27 mycroft Exp $
+# $NetBSD: Makefile.kern.inc,v 1.42 2003/11/06 08:23:22 jdolecek Exp $
#
# This file contains common `MI' targets and definitions and it is included
# at the bottom of each `MD' ${MACHINE}/conf/Makefile.${MACHINE}.
@@ -59,6 +59,13 @@
# but our sources aren't up for it yet.
CWARNFLAGS+= -Wno-sign-compare
.endif
+
+# Disable unitialized warnings with 2.95 - it gets it wrong way too often
+_ISGCC295!= ${CC} --version 2>/dev/null | grep 2.95 2>/dev/null || echo 0
+.if ${_ISGCC295}
+CWARNFLAGS+= -Wno-uninitialized
+.endif
+
CFLAGS+= ${COPTS.${.IMPSRC:T}} ${CPUFLAGS.${.IMPSRC:T}}
CFLAGS+= ${CPPFLAGS.${.IMPSRC:T}}
CFLAGS+= ${CPUFLAGS} -ffreestanding ${DEBUG} ${COPTS} ${CWARNFLAGS}
Home |
Main Index |
Thread Index |
Old Index