Module Name:    src
Committed By:   martin
Date:           Thu Oct 25 15:14:36 UTC 2012

Modified Files:
        src/usr.sbin/zic: Makefile

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/usr.sbin/zic/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.sbin/zic/Makefile
diff -u src/usr.sbin/zic/Makefile:1.9 src/usr.sbin/zic/Makefile:1.10
--- src/usr.sbin/zic/Makefile:1.9	Wed Apr 22 15:23:10 2009
+++ src/usr.sbin/zic/Makefile	Thu Oct 25 15:14:36 2012
@@ -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>
 

Reply via email to