Boost C++ Libraries: Ticket #1984: Uninitialized member warning for struct timespec https://svn.boost.org/trac10/ticket/1984 <p> 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). </p> <p> Small fix for this problem is to explicit initialize the whole struct not just the first member. </p> <p> Patch for version 1.35.0 is attached – applies against SVN, too. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/1984 Trac 1.4.3 Mathias.Krause@… Tue, 03 Jun 2008 07:31:09 GMT attachment set https://svn.boost.org/trac10/ticket/1984 https://svn.boost.org/trac10/ticket/1984 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">boost_1_35_0-timespec_init.diff</span> </li> </ul> <p> Explicit initialize struct timespec and xtime to avoid compiler wanings </p> Ticket Marshall Clow Tue, 03 Jun 2008 14:05:05 GMT component changed; owner set https://svn.boost.org/trac10/ticket/1984#comment:1 https://svn.boost.org/trac10/ticket/1984#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">Anthony Williams</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">thread</span> </li> </ul> Ticket Anthony Williams Wed, 04 Jun 2008 16:05:44 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/1984#comment:2 https://svn.boost.org/trac10/ticket/1984#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> Fixed on trunk </p> Ticket