Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/share/mk Disable -Wconversion for gcc older than 4.5
details: https://anonhg.NetBSD.org/src/rev/5d0bf8e83b0d
branches: trunk
changeset: 788653:5d0bf8e83b0d
user: martin <martin%NetBSD.org@localhost>
date: Wed Jul 17 19:24:56 2013 +0000
description:
Disable -Wconversion for gcc older than 4.5
diffstat:
share/mk/bsd.sys.mk | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 0f502d72f935 -r 5d0bf8e83b0d share/mk/bsd.sys.mk
--- a/share/mk/bsd.sys.mk Wed Jul 17 15:50:59 2013 +0000
+++ b/share/mk/bsd.sys.mk Wed Jul 17 19:24:56 2013 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.sys.mk,v 1.224 2013/07/16 17:48:52 christos Exp $
+# $NetBSD: bsd.sys.mk,v 1.225 2013/07/17 19:24:56 martin Exp $
#
# Build definitions used for NetBSD source tree builds.
@@ -64,7 +64,7 @@
.if ${WARNS} > 4
CFLAGS+= -Wold-style-definition
.endif
-.if ${WARNS} > 5
+.if ${WARNS} > 5 && !(defined(HAVE_GCC) && ${HAVE_GCC} <= 45)
CFLAGS+= -Wconversion
.endif
CFLAGS+= -Wsign-compare -Wformat=2
Home |
Main Index |
Thread Index |
Old Index