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

Subject: Re: [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: 2010-02-06 17:44:19


#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.42.0 | Severity: Cosmetic
 Keywords: |
--------------------------+-------------------------------------------------
Changes (by anonymous):

  * version: Boost 1.40.0 => Boost 1.42.0

Comment:

 This is also happening on my Ubuntu-9.10 distribution with g++-4.3.2. I
 have boost-1.42 installed. I cannot build any code using this header (even
 indirectly) with -W and -Werror enabled.

 This bug reproduces with the minimal source included below. Compile it
 with -Werror and -W:

 {{{
 // threadtest.cpp

 #include <boost/thread.hpp>

 int main(int, char **)
 {
     return -1;
 }

 }}}
 Build with
 {{{
 g++ -c threadtest.cpp -Werror -W -I$HOME/programs/boost-1.42/include

 Compilation started at Sat Feb 6 17:29:17

 g++ -c threadtest.cpp -Werror -W -I$HOME/programs/boost-1.42/include

 cc1plus: warnings being treated as errors
 In file included from
 /home/logic/programs/boost-1.42/include/boost/date_time/posix_time/conversion.hpp:17\
 ,
                  from
 /home/logic/programs/boost-1.42/include/boost/thread/xtime.hpp:15,
                  from
 /home/logic/programs/boost-1.42/include/boost/thread/pthread/mutex.hpp:13,
                  from
 /home/logic/programs/boost-1.42/include/boost/thread/mutex.hpp:16,
                  from
 /home/logic/programs/boost-1.42/include/boost/thread/pthread/thread_data.hpp:12,
                  from
 /home/logic/programs/boost-1.42/include/boost/thread/thread.hpp:17,
                  from
 /home/logic/programs/boost-1.42/include/boost/thread.hpp:13,
                  from threadtest.cpp:1:
 /home/logic/programs/boost-1.42/include/boost/date_time/gregorian/conversion.hpp:
 In function 'tm boost::g\
 regorian::to_tm(const boost::gregorian::date&)':
 /home/logic/programs/boost-1.42/include/boost/date_time/gregorian/conversion.hpp:44:
 error: missing initia\
 lizer for member 'tm::tm_sec'
 /home/logic/programs/boost-1.42/include/boost/date_time/gregorian/conversion.hpp:44:
 error: missing initia\
 lizer for member 'tm::tm_min'
 /home/logic/programs/boost-1.42/include/boost/date_time/gregorian/conversion.hpp:44:
 error: missing initia\
 lizer for member 'tm::tm_hour'
 /home/logic/programs/boost-1.42/include/boost/date_time/gregorian/conversion.hpp:44:
 error: missing initia\
 lizer for member 'tm::tm_mday'
 /home/logic/programs/boost-1.42/include/boost/date_time/gregorian/conversion.hpp:44:
 error: missing initia\
 lizer for member 'tm::tm_mon'
 /home/logic/programs/boost-1.42/include/boost/date_time/gregorian/conversion.hpp:44:
 error: missing initia\
 lizer for member 'tm::tm_year'
 /home/logic/programs/boost-1.42/include/boost/date_time/gregorian/conversion.hpp:44:
 error: missing initia\
 lizer for member 'tm::tm_wday'
 /home/logic/programs/boost-1.42/include/boost/date_time/gregorian/conversion.hpp:44:
 error: missing initia\
 lizer for member 'tm::tm_yday'
 /home/logic/programs/boost-1.42/include/boost/date_time/gregorian/conversion.hpp:44:
 error: missing initia\
 lizer for member 'tm::tm_isdst'
 /home/logic/programs/boost-1.42/include/boost/date_time/gregorian/conversion.hpp:44:
 error: missing initia\
 lizer for member 'tm::tm_gmtoff'
 /home/logic/programs/boost-1.42/include/boost/date_time/gregorian/conversion.hpp:44:
 error: missing initia\
 lizer for member 'tm::tm_zone'
 In file included from
 /home/logic/programs/boost-1.42/include/boost/thread/xtime.hpp:15,
                  from
 /home/logic/programs/boost-1.42/include/boost/thread/pthread/mutex.hpp:13,
                  from
 /home/logic/programs/boost-1.42/include/boost/thread/mutex.hpp:16,
                  from
 /home/logic/programs/boost-1.42/include/boost/thread/pthread/thread_data.hpp:12,
                  from
 /home/logic/programs/boost-1.42/include/boost/thread/thread.hpp:17,
                  from
 /home/logic/programs/boost-1.42/include/boost/thread.hpp:13,
                  from threadtest.cpp:1:
 /home/logic/programs/boost-1.42/include/boost/date_time/posix_time/conversion.hpp:
 In function 'tm boost::\
 posix_time::to_tm(const boost::posix_time::time_duration&)':
 /home/logic/programs/boost-1.42/include/boost/date_time/posix_time/conversion.hpp:46:
 error: missing initi\
 alizer for member 'tm::tm_sec'
 /home/logic/programs/boost-1.42/include/boost/date_time/posix_time/conversion.hpp:46:
 error: missing initi\
 alizer for member 'tm::tm_min'
 /home/logic/programs/boost-1.42/include/boost/date_time/posix_time/conversion.hpp:46:
 error: missing initi\
 alizer for member 'tm::tm_hour'
 /home/logic/programs/boost-1.42/include/boost/date_time/posix_time/conversion.hpp:46:
 error: missing initi\
 alizer for member 'tm::tm_mday'
 /home/logic/programs/boost-1.42/include/boost/date_time/posix_time/conversion.hpp:46:
 error: missing initi\
 alizer for member 'tm::tm_mon'
 /home/logic/programs/boost-1.42/include/boost/date_time/posix_time/conversion.hpp:46:
 error: missing initi\
 alizer for member 'tm::tm_year'
 /home/logic/programs/boost-1.42/include/boost/date_time/posix_time/conversion.hpp:46:
 error: missing initi\
 alizer for member 'tm::tm_wday'
 /home/logic/programs/boost-1.42/include/boost/date_time/posix_time/conversion.hpp:46:
 error: missing initi\
 alizer for member 'tm::tm_yday'
 /home/logic/programs/boost-1.42/include/boost/date_time/posix_time/conversion.hpp:46:
 error: missing initi\
 alizer for member 'tm::tm_isdst'
 /home/logic/programs/boost-1.42/include/boost/date_time/posix_time/conversion.hpp:46:
 error: missing initi\
 alizer for member 'tm::tm_gmtoff'
 /home/logic/programs/boost-1.42/include/boost/date_time/posix_time/conversion.hpp:46:
 error: missing initi\
 alizer for member 'tm::tm_zone'

 Compilation exited abnormally with code 1 at Sat Feb 6 17:29:20

 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/3563#comment:1>
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:02 UTC