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 { ^~~~~
This commit is contained in:
parent
844d41bff8
commit
3bb4805c2b
6
external/bsd/atf/lib/tools/Makefile
vendored
6
external/bsd/atf/lib/tools/Makefile
vendored
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user