[thread] Missing initializer warnings from gcc in 1.35.0

I just tried moving to 1.35.0 (from 1.34.0) and am getting the following warnings: /usr/local/boost/1.35.0/x86/include/boost-1_35/boost/thread/pthread/ timespec.hpp: In function 'timespec boost::detail::get_timespec(const boost::system_time&)':/usr/local/boost/1.35.0/x86/include/boost-1_35/boost/ thread/pthread/timespec.hpp:18: warning: missing initializer for member 'timespec::tv_nsec' /usr/local/boost/1.35.0/x86/include/boost-1_35/boost/thread/xtime.hpp: In function 'boost::xtime boost::get_xtime(const boost::system_time&)': /usr/local/boost/1.35.0/x86/include/boost-1_35/boost/thread/xtime.hpp:59: warning: missing initializer for member 'boost::xtime::nsec' We compile with -Wall and -Werror, and would like to continue doing so. Anyone know of a way of suppressing this warning? We're using gcc 4.1 and 4.2.1. Thanks, Colin

On Wed, Apr 02, 2008 at 10:25:03AM +0000, Colin Caughie wrote:
I just tried moving to 1.35.0 (from 1.34.0) and am getting the following warnings:
We compile with -Wall and -Werror, and would like to continue doing so. Anyone know of a way of suppressing this warning?
Apply the (verbose) patch from http://svn.boost.org/trac/boost/ticket/1556 Jens

Jens Seidel:
On Wed, Apr 02, 2008 at 10:25:03AM +0000, Colin Caughie wrote:
I just tried moving to 1.35.0 (from 1.34.0) and am getting the following warnings:
We compile with -Wall and -Werror, and would like to continue doing so. Anyone know of a way of suppressing this warning?
Apply the (verbose) patch from http://svn.boost.org/trac/boost/ticket/1556
Does g++ also warn about struct timespec timeout = {}; ? Another way to avoid the full list is timespec timeout = timespec(); This will simplify shared_mutex() { state_data state_ = { 0 }; state = state_; } to shared_mutex(): state() { } unless compiler bugs get in the way.
participants (3)
-
Colin Caughie
-
Jens Seidel
-
Peter Dimov