Fix for gcc-4.1
This commit is contained in:
parent
988fc89e95
commit
18053c39af
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile,v 1.10 2014/06/14 20:49:36 mrg Exp $
|
||||
# $NetBSD: Makefile,v 1.11 2014/12/23 19:05:58 christos Exp $
|
||||
|
||||
LIBISPRIVATE=yes
|
||||
|
||||
|
@ -17,6 +17,10 @@ CPPFLAGS+=-I${DIST}
|
|||
SRCS=libopts.c
|
||||
|
||||
COPTS.libopts.c += -DPOSIX_SHELL="\"/bin/sh\"" -Wno-format-nonliteral
|
||||
.if ${HAVE_GCC} >= 45
|
||||
COPTS.libopts.c+= ${${ACTIVE_CC} == "gcc":? -Wno-format-contains-nul :}
|
||||
.else
|
||||
COPTS.libopts.c+= -Wno-error
|
||||
.endif
|
||||
|
||||
.include <bsd.lib.mk>
|
||||
|
|
Loading…
Reference in New Issue