Boost C++ Libraries: Ticket #3922: Warnings in Boost 1.42 https://svn.boost.org/trac10/ticket/3922 <p> Hi, </p> <p> compiling Boost 1.42 e.g. on gcc 4.3.2 produces the following warnings (-Wall) </p> <p> /include/boost-1_42/boost/date_time/gregorian/conversion.hpp:44: warning: missing initializer for member 'tm::tm_gmtoff' /include/boost-1_42/boost/date_time/gregorian/conversion.hpp:44: warning: missing initializer for member 'tm::tm_hour' /include/boost-1_42/boost/date_time/gregorian/conversion.hpp:44: warning: missing initializer for member 'tm::tm_isdst' /include/boost-1_42/boost/date_time/gregorian/conversion.hpp:44: warning: missing initializer for member 'tm::tm_mday' /include/boost-1_42/boost/date_time/gregorian/conversion.hpp:44: warning: missing initializer for member 'tm::tm_min' /include/boost-1_42/boost/date_time/gregorian/conversion.hpp:44: warning: missing initializer for member 'tm::tm_mon' /include/boost-1_42/boost/date_time/gregorian/conversion.hpp:44: warning: missing initializer for member 'tm::tm_sec' /include/boost-1_42/boost/date_time/gregorian/conversion.hpp:44: warning: missing initializer for member 'tm::tm_wday' /include/boost-1_42/boost/date_time/gregorian/conversion.hpp:44: warning: missing initializer for member 'tm::tm_yday' /include/boost-1_42/boost/date_time/gregorian/conversion.hpp:44: warning: missing initializer for member 'tm::tm_year' /include/boost-1_42/boost/date_time/gregorian/conversion.hpp:44: warning: missing initializer for member 'tm::tm_zone' /include/boost-1_42/boost/date_time/posix_time/conversion.hpp:46: warning: missing initializer for member 'tm::tm_gmtoff' /include/boost-1_42/boost/date_time/posix_time/conversion.hpp:46: warning: missing initializer for member 'tm::tm_hour' /include/boost-1_42/boost/date_time/posix_time/conversion.hpp:46: warning: missing initializer for member 'tm::tm_isdst' /include/boost-1_42/boost/date_time/posix_time/conversion.hpp:46: warning: missing initializer for member 'tm::tm_mday' /include/boost-1_42/boost/date_time/posix_time/conversion.hpp:46: warning: missing initializer for member 'tm::tm_min' /include/boost-1_42/boost/date_time/posix_time/conversion.hpp:46: warning: missing initializer for member 'tm::tm_mon' /include/boost-1_42/boost/date_time/posix_time/conversion.hpp:46: warning: missing initializer for member 'tm::tm_sec' /include/boost-1_42/boost/date_time/posix_time/conversion.hpp:46: warning: missing initializer for member 'tm::tm_wday' /include/boost-1_42/boost/date_time/posix_time/conversion.hpp:46: warning: missing initializer for member 'tm::tm_yday' /include/boost-1_42/boost/date_time/posix_time/conversion.hpp:46: warning: missing initializer for member 'tm::tm_year' /include/boost-1_42/boost/date_time/posix_time/conversion.hpp:46: warning: missing initializer for member 'tm::tm_zone' /include/boost-1_42/boost/iterator/iterator_facade.hpp:652: warning: type qualifiers ignored on function return type /include/boost-1_42/boost/lambda/detail/lambda_functors.hpp:164: warning: type qualifiers ignored on function return type /include/boost-1_42/boost/lambda/detail/select_functions.hpp:55: warning: type qualifiers ignored on function return type /include/boost-1_42/boost/lambda/detail/select_functions.hpp:60: warning: type qualifiers ignored on function return type /include/boost-1_42/boost/lambda/detail/select_functions.hpp:65: warning: type qualifiers ignored on function return type /include/boost-1_42/boost/spirit.hpp:18:4: warning: #warning "This header is deprecated. Please use: boost/spirit/include/classic.hpp" /include/boost-1_42/boost/spirit.hpp:18:4: warning: #warning is a GCC extension /include/boost-1_42/boost/spirit/home/classic/phoenix/actor.hpp:343: warning: type qualifiers ignored on function return type /include/boost-1_42/boost/spirit/phoenix.hpp:18:4: warning: #warning "This header is deprecated. Please use: boost/spirit/include/phoenix1.hpp" /include/boost-1_42/boost/spirit/phoenix.hpp:18:4: warning: #warning is a GCC extension </p> <p> Could you please have a look into fixing those. </p> <p> Thanks </p> <blockquote> <p> Stefan </p> </blockquote> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/3922 Trac 1.4.3 Steven Watanabe Fri, 12 Mar 2010 16:57:37 GMT <link>https://svn.boost.org/trac10/ticket/3922#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3922#comment:1</guid> <description> <p> I'm not certain that the date_time warnings are fixable. The code is correct, since the empty braces are specified to zero initialize all members. The alternative is value initialization, and some older compilers have trouble with that. Also, from the man pages, it appears that they come from -Wextra rather than -Wall. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Steven Watanabe</dc:creator> <pubDate>Fri, 12 Mar 2010 17:04:31 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/3922#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3922#comment:2</guid> <description> <p> It's hard to tell what's up with the lambda warnings without having a test case. All of the lambda tests pass with -Wall -Wextra -pedantic -Werror on gcc 4.4.1. The spirit warnings are intentional. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Marshall Clow</dc:creator> <pubDate>Sun, 06 Jun 2010 18:24:08 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/3922#comment:3 https://svn.boost.org/trac10/ticket/3922#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">wontfix</span> </li> </ul> <p> Closing. See comment above by Steven W. as to why we're not fixing this. </p> Ticket Marshall Clow Sun, 06 Jun 2010 18:24:39 GMT <link>https://svn.boost.org/trac10/ticket/3922#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3922#comment:4</guid> <description> <p> See also ticket <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3477" title="#3477: Patches: warning: missing initializer for member ‘tm::tm_sec’ .. (closed: worksforme)">#3477</a> </p> </description> <category>Ticket</category> </item> </channel> </rss>