Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/zic Make warnings non fatal for older gcc versions ...



details:   https://anonhg.NetBSD.org/src/rev/003f146ca5f0
branches:  trunk
changeset: 782279:003f146ca5f0
user:      martin <martin%NetBSD.org@localhost>
date:      Thu Oct 25 15:14:36 2012 +0000

description:
Make warnings non fatal for older gcc versions - I couldn't figure out how to
shut up gcc when compiling for vax. Feel free to fix differently if you
find a better solution.

diffstat:

 usr.sbin/zic/Makefile |  10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diffs (19 lines):

diff -r 8fc466c46dc7 -r 003f146ca5f0 usr.sbin/zic/Makefile
--- a/usr.sbin/zic/Makefile     Thu Oct 25 15:05:22 2012 +0000
+++ b/usr.sbin/zic/Makefile     Thu Oct 25 15:14:36 2012 +0000
@@ -1,6 +1,14 @@
-#      $NetBSD: Makefile,v 1.9 2009/04/22 15:23:10 lukem Exp $
+#      $NetBSD: Makefile,v 1.10 2012/10/25 15:14:36 martin Exp $
 
+.if defined(HAVE_GCC) && ${HAVE_GCC} >= 45
 WARNS?=        2       # XXX -Wcast-qual in lib/libc/time
+.else
+# warning with older gcc:
+# "comparison is always false due to limited range of data type"
+# and no way to make it shut up?
+WARNS=         0
+NOGCCERROR=    1
+.endif
 
 .include <bsd.own.mk>
 



Home | Main Index | Thread Index | Old Index