Ticket #1556: boost.thread.diff

File boost.thread.diff, 1.9 KB (added by jensseidel@…, 15 years ago)
  • thread/pthread/timespec.hpp

     
    1515    {
    1616        inline struct timespec get_timespec(boost::system_time const& abs_time)
    1717        {
    18             struct timespec timeout={0};
     18// warning: missing initializer for member 'timespec::tv_nsec'
     19            struct timespec timeout={0, 0};
    1920            boost::posix_time::time_duration const time_since_epoch=abs_time-boost::posix_time::from_time_t(0);
    2021           
    2122            timeout.tv_sec=time_since_epoch.total_seconds();
  • thread/pthread/shared_mutex.hpp

     
    4444    public:
    4545        shared_mutex()
    4646        {
    47             state_data state_={0};
     47// warning: missing initializer for member 'boost::shared_mutex::state_data::exclusive'
     48// warning: missing initializer for member 'boost::shared_mutex::state_data::upgrade'
     49// warning: missing initializer for member 'boost::shared_mutex::state_data::exclusive_waiting_blocked'
     50            state_data state_={0, false, false, false};
    4851            state=state_;
    4952        }
    5053
  • thread/xtime.hpp

     
    5656
    5757inline xtime get_xtime(boost::system_time const& abs_time)
    5858{
    59     xtime res={0};
     59// warning: missing initializer for member 'boost::xtime::nsec'
     60    xtime res={0, 0};
    6061    boost::posix_time::time_duration const time_since_epoch=abs_time-boost::posix_time::from_time_t(0);
    6162           
    6263    res.sec=static_cast<xtime::xtime_sec_t>(time_since_epoch.total_seconds());