Module Name: src Committed By: martin Date: Tue Mar 5 10:19:58 UTC 2013
Modified Files: src/usr.sbin/zic: Makefile Log Message: Add back NOGCCERROR for older gcc versions to fix the vax build To generate a diff of this commit: cvs rdiff -u -r1.11 -r1.12 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.11 src/usr.sbin/zic/Makefile:1.12 --- src/usr.sbin/zic/Makefile:1.11 Sat Mar 2 21:38:19 2013 +++ src/usr.sbin/zic/Makefile Tue Mar 5 10:19:58 2013 @@ -1,9 +1,17 @@ -# $NetBSD: Makefile,v 1.11 2013/03/02 21:38:19 christos Exp $ +# $NetBSD: Makefile,v 1.12 2013/03/05 10:19:58 martin Exp $ .include "Makefile.inc" +.if defined(HAVE_GCC) && ${HAVE_GCC} >= 45 COPTS.zic.c += -Wno-format-nonliteral COPTS.scheck.c += -Wno-format-nonliteral +.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>