Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r75785 - trunk/libs/thread/src/pthread
From: vicente.botet_at_[hidden]
Date: 2011-12-03 08:25:55


Author: viboes
Date: 2011-12-03 08:25:55 EST (Sat, 03 Dec 2011)
New Revision: 75785
URL: http://svn.boost.org/trac/boost/changeset/75785

Log:
Thread: 5739 set-but-not-used warnings with gcc-4.6
Text files modified:
   trunk/libs/thread/src/pthread/timeconv.inl | 9 ++++-----
   1 files changed, 4 insertions(+), 5 deletions(-)

Modified: trunk/libs/thread/src/pthread/timeconv.inl
==============================================================================
--- trunk/libs/thread/src/pthread/timeconv.inl (original)
+++ trunk/libs/thread/src/pthread/timeconv.inl 2011-12-03 08:25:55 EST (Sat, 03 Dec 2011)
@@ -21,7 +21,7 @@
 {
     int res = 0;
     res = boost::xtime_get(&xt, boost::TIME_UTC);
- BOOST_ASSERT(res == boost::TIME_UTC);
+ BOOST_ASSERT(res == boost::TIME_UTC); (void)res;
 
     xt.sec += (milliseconds / MILLISECONDS_PER_SECOND);
     xt.nsec += ((milliseconds % MILLISECONDS_PER_SECOND) *
@@ -33,7 +33,6 @@
         xt.nsec -= NANOSECONDS_PER_SECOND;
     }
 }
-
 #if defined(BOOST_HAS_PTHREADS)
 inline void to_timespec(const boost::xtime& xt, timespec& ts)
 {
@@ -58,7 +57,7 @@
     boost::xtime cur;
     int res = 0;
     res = boost::xtime_get(&cur, boost::TIME_UTC);
- BOOST_ASSERT(res == boost::TIME_UTC);
+ BOOST_ASSERT(res == boost::TIME_UTC); (void)res;
 
     if (boost::xtime_cmp(xt, cur) <= 0)
     {
@@ -89,7 +88,7 @@
     boost::xtime cur;
     int res = 0;
     res = boost::xtime_get(&cur, boost::TIME_UTC);
- BOOST_ASSERT(res == boost::TIME_UTC);
+ BOOST_ASSERT(res == boost::TIME_UTC); (void)res;
 
     if (boost::xtime_cmp(xt, cur) <= 0)
         milliseconds = 0;
@@ -111,7 +110,7 @@
     boost::xtime cur;
     int res = 0;
     res = boost::xtime_get(&cur, boost::TIME_UTC);
- BOOST_ASSERT(res == boost::TIME_UTC);
+ BOOST_ASSERT(res == boost::TIME_UTC); (void)res;
 
     if (boost::xtime_cmp(xt, cur) <= 0)
         microseconds = 0;


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