Boost logo

Boost :

From: Juergen Hunold (juergen.hunold_at_[hidden])
Date: 2008-04-21 15:07:03

Hi !

Peter Dimov commited some refacturings for shared_ptr last weekend. One
commit triggered the following warning from gcc-4.2:

In file included from yield_k_test.cpp:12:
$BOOST_ROOT/boost/boost/detail/yield_k.hpp: In function 'void
boost::detail::yield(unsigned int)':
$BOOST_ROOT/boost/detail/yield_k.hpp:114: warning: missing initializer
for member 'timespec::tv_nsec'

This is gcc-4.2 on SuSE-10.3 and Kubuntu Hardy.
We compile our code with -Wextra. Adding -Wextra to the compile flags of
the yield_k test in libs/smart_ptr/test shows this warning in the
regression test.
I've got a small fix attached which (hopefully) initialises "rqtp"
completely in the initialiser list and removes the (hopefully)
redundant assignments.

I've manually run the regression test and they pass.

I'm unsure if this is the right test.

Comments ? Okay to commit ?



* Dipl.-Math. Jürgen Hunold       ! Ingenieurgesellschaft für 
* voice: ++49 511 262926 57       ! Verkehrs- und Eisenbahnwesen mbH  
* fax  : ++49 511 262926 99       ! Lister Straße 15
* juergen.hunold_at_[hidden]        !
* Geschäftsführer:                ! Sitz des Unternehmens: Hannover
* Prof. Dr.-Ing. Thomas Siefer    ! Amtsgericht Hannover, HRB 56965
* PD Dr.-Ing. Alfons Radtke       !

Boost list run by bdawes at, gregod at, cpdaniel at, john at