Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/zic Add back NOGCCERROR for older gcc versions to f...



details:   https://anonhg.NetBSD.org/src/rev/5c861786b057
branches:  trunk
changeset: 785233:5c861786b057
user:      martin <martin%NetBSD.org@localhost>
date:      Tue Mar 05 10:19:58 2013 +0000

description:
Add back NOGCCERROR for older gcc versions to fix the vax build

diffstat:

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

diffs (22 lines):

diff -r e15aee811da4 -r 5c861786b057 usr.sbin/zic/Makefile
--- a/usr.sbin/zic/Makefile     Tue Mar 05 07:22:26 2013 +0000
+++ b/usr.sbin/zic/Makefile     Tue Mar 05 10:19:58 2013 +0000
@@ -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>
 



Home | Main Index | Thread Index | Old Index