[xpressive] CVS: Spurious warnings on #include <boost/xpressive/xpressive.hpp>
When building with -W -Wall, including <boost/xpressive/xpressive.hpp> produces a number of spurious warnings. GCC version: gcc version 4.1.3 20070831 (prerelease) (Ubuntu 4.1.2-16ubuntu1) Boost version: CVS (regression from 1.34.1) --- test program (build with -W -Wall) --- #include <boost/xpressive/xpressive.hpp> int main() { return 0; } --- end --- --- warning output --- bcvs/boost/boost/xpressive/regex_primitives.hpp:142: warning: missing initializer for member 'boost::proto::exprns_::expr<boost::proto::tag::terminal, boost::proto::argsns_::args0<boost::xpressive::detail::epsilon_matcher>, 0l>::arg0' bcvs/boost/boost/xpressive/regex_primitives.hpp:149: warning: missing initializer for member 'boost::proto::exprns_::expr<boost::proto::tag::terminal, boost::proto::argsns_::args0<boost::xpressive::detail::epsilon_matcher>, 0l>::arg0' bcvs/boost/boost/xpressive/regex_primitives.hpp:276: warning: missing initializer for member 'boost::proto::exprns_::expr<boost::proto::tag::terminal, boost::proto::argsns_::args0<boost::xpressive::detail::assert_bos_matcher>, 0l>::arg0' bcvs/boost/boost/xpressive/regex_primitives.hpp:287: warning: missing initializer for member 'boost::proto::exprns_::expr<boost::proto::tag::terminal, boost::proto::argsns_::args0<boost::xpressive::detail::assert_eos_matcher>, 0l>::arg0' bcvs/boost/boost/xpressive/regex_primitives.hpp:295: warning: missing initializer for member 'boost::proto::exprns_::expr<boost::proto::tag::terminal, boost::proto::argsns_::args0<boost::xpressive::detail::assert_bol_placeholder>, 0l>::arg0' bcvs/boost/boost/xpressive/regex_primitives.hpp:303: warning: missing initializer for member 'boost::proto::exprns_::expr<boost::proto::tag::terminal, boost::proto::argsns_::args0<boost::xpressive::detail::assert_eol_placeholder>, 0l>::arg0' bcvs/boost/boost/xpressive/regex_primitives.hpp:311: warning: missing initializer for member 'boost::proto::exprns_::expr<boost::proto::tag::terminal, boost::proto::argsns_::args0<boost::xpressive::detail::assert_word_placeholder<boost::xpressive::detail::word_begin>
, 0l>::arg0' bcvs/boost/boost/xpressive/regex_primitives.hpp:319: warning: missing initializer for member 'boost::proto::exprns_::expr<boost::proto::tag::terminal, boost::proto::argsns_::args0<boost::xpressive::detail::assert_word_placeholder<boost::xpressive::detail::word_end> , 0l>::arg0' bcvs/boost/boost/xpressive/regex_primitives.hpp:329: warning: missing initializer for member 'boost::proto::exprns_::expr<boost::proto::tag::terminal, boost::proto::argsns_::args0<boost::xpressive::detail::assert_word_placeholder<boost::xpressive::detail::word_boundary<true>
, 0l>::arg0' bcvs/boost/boost/xpressive/regex_primitives.hpp:377: warning: missing initializer for member 'boost::proto::exprns_::expr<boost::proto::tag::terminal, boost::proto::argsns_::args0<boost::xpressive::detail::logical_newline_placeholder>, 0l>::arg0' bcvs/boost/boost/xpressive/regex_primitives.hpp:386: warning: missing initializer for member 'boost::proto::exprns_::expr<boost::proto::tag::terminal, boost::proto::argsns_::args0<boost::xpressive::detail::any_matcher>, 0l>::arg0' bcvs/boost/boost/xpressive/regex_primitives.hpp:395: warning: missing initializer for member 'boost::proto::exprns_::expr<boost::proto::tag::terminal, boost::proto::argsns_::args0<boost::xpressive::detail::self_placeholder>, 0l>::arg0' bcvs/boost/boost/xpressive/regex_primitives.hpp:412: warning: missing initializer for member 'boost::proto::exprns_::expr<boost::proto::tag::terminal, boost::proto::argsns_::args0<boost::xpressive::detail::set_initializer>, 0l>::arg0' --- end output ---
Bryan Donlan wrote:
When building with -W -Wall, including <boost/xpressive/xpressive.hpp> produces a number of spurious warnings.
<snip>
bcvs/boost/boost/xpressive/regex_primitives.hpp:142: warning: missing initializer for member 'boost::proto::exprns_::expr<boost::proto::tag::terminal, boost::proto::argsns_::args0<boost::xpressive::detail::epsilon_matcher>, 0l>::arg0'
I fixed these warnings and others on svn head last week. Can you sync and try again? (Note: don't look in the old cvs repository. Svn is where it's at these days.) -- Eric Niebler Boost Consulting www.boost-consulting.com The Astoria Seminar ==> http://www.astoriaseminar.com
On 9/4/07, Eric Niebler <eric@boost-consulting.com> wrote:
Bryan Donlan wrote:
When building with -W -Wall, including <boost/xpressive/xpressive.hpp> produces a number of spurious warnings.
<snip>
bcvs/boost/boost/xpressive/regex_primitives.hpp:142: warning: missing initializer for member 'boost::proto::exprns_::expr<boost::proto::tag::terminal, boost::proto::argsns_::args0<boost::xpressive::detail::epsilon_matcher>, 0l>::arg0'
I fixed these warnings and others on svn head last week. Can you sync and try again? (Note: don't look in the old cvs repository. Svn is where it's at these days.)
Ah, sorry, all the website documentation was talking about CVS - eg http://www.boost.org/more/bugs.htm (and the links from there for CVS lead to getting started docs, which don't talk about CVS at all). SVN trunk (r39123) produces different warnings when I pass it the following test program at -W -Wall: #include <boost/xpressive/xpressive.hpp> int main() { boost::xpressive::sregex r1 = boost::xpressive::digit; boost::xpressive::sregex r2 = *r1; return 0; } I've attached the output bz2'd, as the original output was some 35K long.
On 9/4/07, Eric Niebler <eric@boost-consulting.com> wrote:
Bryan Donlan wrote:
When building with -W -Wall, including <boost/xpressive/xpressive.hpp> produces a number of spurious warnings.
<snip>
bcvs/boost/boost/xpressive/regex_primitives.hpp:142: warning: missing initializer for member 'boost::proto::exprns_::expr<boost::proto::tag::terminal, boost::proto::argsns_::args0<boost::xpressive::detail::epsilon_matcher>, 0l>::arg0'
I fixed these warnings and others on svn head last week. Can you sync and try again? (Note: don't look in the old cvs repository. Svn is where it's at these days.)
Ah, sorry, all the website documentation was talking about CVS - eg http://www.boost.org/more/bugs.htm (and the links from there for CVS lead to getting started docs, which don't talk about CVS at all). SVN trunk (r39123) produces different warnings when I pass it the following test program at -W -Wall: #include <boost/xpressive/xpressive.hpp> int main() { boost::xpressive::sregex r1 = boost::xpressive::digit; boost::xpressive::sregex r2 = *r1; return 0; } Output is at http://fushizen.net/~bd/boostbug.stderr.log.bz2 - I didn't want to subject the list to the 35K uncompressed output, and the list software rejected my attachment (sorry if this is a double post, the bounce message wasn't clear on that point)
Bryan Donlan wrote:
Ah, sorry, all the website documentation was talking about CVS - eg http://www.boost.org/more/bugs.htm (and the links from there for CVS lead to getting started docs, which don't talk about CVS at all).
Could you file a bug for this? Select "New Ticket" at http://svn.boost.org.
SVN trunk (r39123) produces different warnings when I pass it the following test program at -W -Wall: #include <boost/xpressive/xpressive.hpp>
int main() { boost::xpressive::sregex r1 = boost::xpressive::digit; boost::xpressive::sregex r2 = *r1; return 0; }
And open a ticket for this as well and assign it to me. I don't know when I'll get to it, though. -- Eric Niebler Boost Consulting www.boost-consulting.com The Astoria Seminar ==> http://www.astoriaseminar.com
This patch to "xpressive\detail\static\transforms\as_quantifier.hpp" eliminates all the warning messages: 229c229 < call(Expr const &expr, State const &, Visitor &visitor) ---
call(Expr const &expr, State const &state, Visitor &visitor)
273c273 < call(Expr const &expr, State const &, Visitor &) ---
call(Expr const &expr, State const &state, Visitor &visitor)
"Eric Niebler" <eric@boost-consulting.com> wrote in message news:46DE11C3.9020703@boost-consulting.com...
And open a ticket for this as well and assign it to me. I don't know when I'll get to it, though.
-- Eric Niebler Boost Consulting www.boost-consulting.com
The Astoria Seminar ==> http://www.astoriaseminar.com
participants (3)
-
Bryan Donlan
-
Dave Jenkins
-
Eric Niebler