fix warnings.
This commit is contained in:
parent
6e1e799722
commit
e7c27cfa88
@ -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>
|
||||
|
||||
|
2
usr.sbin/zic/Makefile.inc
Normal file
2
usr.sbin/zic/Makefile.inc
Normal file
@ -0,0 +1,2 @@
|
||||
|
||||
CPPFLAGS+=-DREPORT_BUGS_TO=\"gnats@netbsd.org\" -DPKGVERSION=\"tzcode-2013a\"
|
Loading…
Reference in New Issue
Block a user