|
Boost : |
Subject: Re: [boost] [date_time, Boost 1.40.0]
From: Vladimir Prus (vladimir_at_[hidden])
Date: 2009-09-02 12:43:25
Andrey Semashev wrote:
> 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.
Would not {0}, as opposed to {}, be enough to remove the warning? Just guessing ;-)
- Volodya
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk