Source-Changes-HG archive

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

[src/trunk]: src/tests/lib/libcurses/director Remove -O0 from CPPFLAGS, and i...



details:   https://anonhg.NetBSD.org/src/rev/9a397733b386
branches:  trunk
changeset: 326128:9a397733b386
user:      apb <apb%NetBSD.org@localhost>
date:      Sun Jan 19 22:09:34 2014 +0000

description:
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

diffstat:

 tests/lib/libcurses/director/Makefile |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (22 lines):

diff -r 3301159f1e96 -r 9a397733b386 tests/lib/libcurses/director/Makefile
--- a/tests/lib/libcurses/director/Makefile     Sun Jan 19 21:50:17 2014 +0000
+++ b/tests/lib/libcurses/director/Makefile     Sun Jan 19 22:09:34 2014 +0000
@@ -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 @@
 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>



Home | Main Index | Thread Index | Old Index