[Boost-bugs] [Boost C++ Libraries] #3563: Warnings using g++ 4.4.0 on date_time/posix_time/conversion.hpp

Subject: [Boost-bugs] [Boost C++ Libraries] #3563: Warnings using g++ 4.4.0 on date_time/posix_time/conversion.hpp
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-10-26 12:49:05


#3563: Warnings using g++ 4.4.0 on date_time/posix_time/conversion.hpp
--------------------------+-------------------------------------------------
 Reporter: anonymous | Owner: az_sw_dude
     Type: Patches | Status: new
Milestone: Boost 1.42.0 | Component: date_time
  Version: Boost 1.40.0 | Severity: Cosmetic
 Keywords: |
--------------------------+-------------------------------------------------
 On MinGW with version 4.4.0 of "g++ -Wall -Wextra -O2":

 C:/Boost/include/boost-1_40/boost/date_time/posix_time/conversion.hpp: In
 function 'tm boost::posix_time::to_tm(const
 boost::posix_time::time_duration&)':
 C:/Boost/include/boost-1_40/boost/date_time/posix_time/conversion.hpp:45:
 warning: missing initializer for member 'tm::tm_sec'
 C:/Boost/include/boost-1_40/boost/date_time/posix_time/conversion.hpp:45:
 warning: missing initializer for member 'tm::tm_min'
 C:/Boost/include/boost-1_40/boost/date_time/posix_time/conversion.hpp:45:
 warning: missing initializer for member 'tm::tm_hour'
 C:/Boost/include/boost-1_40/boost/date_time/posix_time/conversion.hpp:45:
 warning: missing initializer for member 'tm::tm_mday'
 C:/Boost/include/boost-1_40/boost/date_time/posix_time/conversion.hpp:45:
 warning: missing initializer for member 'tm::tm_mon'
 C:/Boost/include/boost-1_40/boost/date_time/posix_time/conversion.hpp:45:
 warning: missing initializer for member 'tm::tm_year'
 C:/Boost/include/boost-1_40/boost/date_time/posix_time/conversion.hpp:45:
 warning: missing initializer for member 'tm::tm_wday'
 C:/Boost/include/boost-1_40/boost/date_time/posix_time/conversion.hpp:45:
 warning: missing initializer for member 'tm::tm_yday'
 C:/Boost/include/boost-1_40/boost/date_time/posix_time/conversion.hpp:45:
 warning: missing initializer for member 'tm::tm_isdst'

 Can't we explicitly initialize the tm members that should be zero'ed
 instead of using "timetm = {}" to get rid of this annoying warning?

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/3563>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:01 UTC