Remove -O0 from CPPFLAGS, and instead set

COPTS.testlang_parse.c += -Wno-uninitialized.

Without the old -O0, and without the new -Wno-uninitialized,
gcc issues this bogus error:
testlang_parse.y:1400:8: error: 'cmd' may be used uninitialized in this function
This commit is contained in:
apb 2014-01-19 22:09:34 +00:00
parent 20cabc6645
commit 2a9bf57a9d
1 changed files with 3 additions and 2 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.7 2014/01/19 21:50:17 apb Exp $
# $NetBSD: Makefile,v 1.8 2014/01/19 22:09:34 apb Exp $
#
.include <bsd.own.mk>
@ -12,10 +12,11 @@ NOMAN= "true"
SRCS= testlang_parse.y testlang_conf.l director.c
YHEADER= 1
CPPFLAGS+= -O0 -I${.CURDIR} -I.
CPPFLAGS+= -I${.CURDIR} -I.
DPADD+= ${LIBL}
LDADD+= -ll -lutil -lc
COPTS.testlang_parse.c += -Wno-uninitialized
CWARNFLAGS.clang+= -Wno-format -Wno-conversion
.include <bsd.test.mk>