Opened 13 years ago

Closed 12 years ago

Last modified 12 years ago

#3922 closed Bugs (wontfix)

Warnings in Boost 1.42

Reported by: Stefan Roiser <stefan.roiser@…> Owned by:
Milestone: Boost 1.43.0 Component: None
Version: Boost 1.42.0 Severity: Problem
Keywords: Cc:

Description

Hi,

compiling Boost 1.42 e.g. on gcc 4.3.2 produces the following warnings (-Wall)

/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

Could you please have a look into fixing those.

Thanks

Stefan

Change History (4)

comment:1 by Steven Watanabe, 13 years ago

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.

comment:2 by Steven Watanabe, 13 years ago

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.

comment:3 by Marshall Clow, 12 years ago

Resolution: wontfix
Status: newclosed

Closing. See comment above by Steven W. as to why we're not fixing this.

comment:4 by Marshall Clow, 12 years ago

See also ticket #3477

Note: See TracTickets for help on using tickets.