[Boost-bugs] [Boost C++ Libraries] #1984: Uninitialized member warning for struct timespec

Subject: [Boost-bugs] [Boost C++ Libraries] #1984: Uninitialized member warning for struct timespec
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-06-03 07:29:33


#1984: Uninitialized member warning for struct timespec
----------------------------------------+-----------------------------------
 Reporter: Mathias.Krause_at_[hidden] | Type: Bugs
   Status: new | Milestone: Boost 1.36.0
Component: None | Version: Boost 1.35.0
 Severity: Cosmetic | Keywords:
----------------------------------------+-----------------------------------
 In boost/thread/xtime.hpp and boost/thread/pthread/timespec.hpp the struct
 timespec is not fully initialized. This results in nasty compiler warnings
 when using this header files in own projects and using the compiler switch
 -W (at least for g++ 3.3).

 Small fix for this problem is to explicit initialize the whole struct not
 just the first member.

 Patch for version 1.35.0 is attached – applies against SVN, too.

--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1984>
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:49:58 UTC