Module Name:    src
Committed By:   mrg
Date:           Mon Feb  4 09:40:54 UTC 2019

Modified Files:
        src/external/bsd/atf/lib/tools: Makefile

Log Message:
with GCC 7, apply -Wno-error=maybe-uninitialized to parser.cpp.

i don't really understand how to remove this warning, someone else
could though, so feel free to :-)

In file included from /usr/src/external/bsd/atf/dist/tools/parser.cpp:33:0:
/usr/src/external/bsd/atf/dist/tools/parser.hpp: In member function 
'tools::parser::token tools::parser::tokenizer<IS>::next() [with IS = 
std::basic_istream<char>]':
/usr/src/external/bsd/atf/dist/tools/parser.hpp:98:8: warning: 
'<anonymous>.tools::parser::token::m_line' may be used uninitialized in this 
function [-Wmaybe-uninitialized]
 struct token {
        ^~~~~


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/external/bsd/atf/lib/tools/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/bsd/atf/lib/tools/Makefile
diff -u src/external/bsd/atf/lib/tools/Makefile:1.5 src/external/bsd/atf/lib/tools/Makefile:1.6
--- src/external/bsd/atf/lib/tools/Makefile:1.5	Wed Feb 12 04:08:31 2014
+++ src/external/bsd/atf/lib/tools/Makefile	Mon Feb  4 09:40:54 2019
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2014/02/12 04:08:31 jmmv Exp $
+# $NetBSD: Makefile,v 1.6 2019/02/04 09:40:54 mrg Exp $
 
 NOLINT=		# defined
 
@@ -36,4 +36,8 @@ SRCS=		application.cpp \
 		ui.cpp \
 		user.cpp
 
+.if defined(HAVE_GCC) && ${HAVE_GCC} == 7 && ${ACTIVE_CC} == "gcc"
+COPTS.parser.cpp += -Wno-error=maybe-uninitialized
+.endif
+
 .include <bsd.lib.mk>

Reply via email to