|
Boost : |
Subject: Re: [boost] [date_time, Boost 1.40.0]
From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2009-09-02 12:25:24
Christoph Duelli wrote:
> Andrey Semashev wrote:
>
>> What warnings?
> These:
>
> boost_1_40_0/include/boost/date_time/gregorian/conversion.hpp:44: warning:
> missing initializer for member 'tm::tm_sec'
> boost_1_40_0/include/boost/date_time/gregorian/conversion.hpp:44: warning:
> missing initializer for member 'tm::tm_min'
> boost_1_40_0/include/boost/date_time/gregorian/conversion.hpp:44: warning:
> missing initializer for member 'tm::tm_hour'
> boost_1_40_0/include/boost/date_time/gregorian/conversion.hpp:44: warning:
> missing initializer for member 'tm::tm_mday'
> boost_1_40_0/include/boost/date_time/gregorian/conversion.hpp:44: warning:
> missing initializer for member 'tm::tm_mon'
> boost_1_40_0/include/boost/date_time/gregorian/conversion.hpp:44: warning:
> missing initializer for member 'tm::tm_year'
> boost_1_40_0/include/boost/date_time/gregorian/conversion.hpp:44: warning:
> missing initializer for member 'tm::tm_wday'
> boost_1_40_0/include/boost/date_time/gregorian/conversion.hpp:44: warning:
> missing initializer for member 'tm::tm_yday'
> boost_1_40_0/include/boost/date_time/gregorian/conversion.hpp:44: warning:
> missing initializer for member 'tm::tm_isdst'
> boost_1_40_0/include/boost/date_time/gregorian/conversion.hpp:44: warning:
> missing initializer for member 'tm::tm_gmtoff'
> boost_1_40_0/include/boost/date_time/gregorian/conversion.hpp:44: warning:
> missing initializer for member 'tm::tm_zone'
Looks like GCC is overreacting. Omitting initializers is fine since
these members should be initialized to zero.
>> I don't see what's inappropriate in these lines, hence I don't see what
>> to fix.
> Nothing inappropriate, just that g++ is not happy (ok, maybe it is a good
> idea to compile with -Wno-missing-field-initializers).
[nod]
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk