|
Boost : |
Subject: Re: [boost] [date_time, Boost 1.40.0]
From: Christoph Duelli (duelli_at_[hidden])
Date: 2009-09-02 06:09:52
Andrey Semashev wrote:
Thank you for looking into this.
> Christoph wrote:
>> including
>> boost/date_time/posix_time/posix_time.hpp
>> or boost/date_time/gregorian/gregorian.hpp
>>
>> gives lots of warning for the following line(s):
>> (boost/date_time/gregorian/conversion.hpp; posix_time, tooo)
>> line 44
>> std::tm datetm = {}; // zero initialization is needed for extension
>> members, like tm_zone
>
> 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'
> 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).
Best regards
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk