Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/zic fix warnings.



details:   https://anonhg.NetBSD.org/src/rev/462e5652e5be
branches:  trunk
changeset: 785194:462e5652e5be
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Mar 02 21:38:19 2013 +0000

description:
fix warnings.

diffstat:

 usr.sbin/zic/Makefile     |  15 +++++----------
 usr.sbin/zic/Makefile.inc |   2 ++
 2 files changed, 7 insertions(+), 10 deletions(-)

diffs (29 lines):

diff -r d322abaa20f8 -r 462e5652e5be usr.sbin/zic/Makefile
--- a/usr.sbin/zic/Makefile     Sat Mar 02 21:28:06 2013 +0000
+++ b/usr.sbin/zic/Makefile     Sat Mar 02 21:38:19 2013 +0000
@@ -1,14 +1,9 @@
-#      $NetBSD: Makefile,v 1.10 2012/10/25 15:14:36 martin Exp $
+#      $NetBSD: Makefile,v 1.11 2013/03/02 21:38:19 christos 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 "Makefile.inc"
+
+COPTS.zic.c    += -Wno-format-nonliteral
+COPTS.scheck.c += -Wno-format-nonliteral
 
 .include <bsd.own.mk>
 
diff -r d322abaa20f8 -r 462e5652e5be usr.sbin/zic/Makefile.inc
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/usr.sbin/zic/Makefile.inc Sat Mar 02 21:38:19 2013 +0000
@@ -0,0 +1,2 @@
+
+CPPFLAGS+=-DREPORT_BUGS_TO=\"gnats%netbsd.org@localhost\" -DPKGVERSION=\"tzcode-2013a\"



Home | Main Index | Thread Index | Old Index