Boost logo

Boost-Commit :

From: pdimov_at_[hidden]
Date: 2008-04-22 20:33:59


Author: pdimov
Date: 2008-04-22 20:33:58 EDT (Tue, 22 Apr 2008)
New Revision: 44728
URL: http://svn.boost.org/trac/boost/changeset/44728

Log:
Silence an g++ -Wextra warning.
Text files modified:
   trunk/boost/detail/yield_k.hpp | 6 +++++-
   1 files changed, 5 insertions(+), 1 deletions(-)

Modified: trunk/boost/detail/yield_k.hpp
==============================================================================
--- trunk/boost/detail/yield_k.hpp (original)
+++ trunk/boost/detail/yield_k.hpp 2008-04-22 20:33:58 EDT (Tue, 22 Apr 2008)
@@ -111,7 +111,11 @@
     }
     else
     {
- struct timespec rqtp = { 0 };
+ // g++ -Wextra warns on {} or {0}
+ struct timespec rqtp = { 0, 0 };
+
+ // POSIX says that timespec has tv_sec and tv_nsec
+ // But it doesn't guarantee order or placement
 
         rqtp.tv_sec = 0;
         rqtp.tv_nsec = 1000;


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk