From 616ea87a0a954be47cd27fc9c6aef79d0c91c643 Mon Sep 17 00:00:00 2001 From: "Vicente J. Botet Escriba" Date: Sat, 3 Dec 2011 13:25:55 +0000 Subject: [PATCH] Thread: 5739 set-but-not-used warnings with gcc-4.6 [SVN r75785] --- src/pthread/timeconv.inl | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/pthread/timeconv.inl b/src/pthread/timeconv.inl index b75a1353..1c0a0cdc 100644 --- a/src/pthread/timeconv.inl +++ b/src/pthread/timeconv.inl @@ -21,7 +21,7 @@ inline void to_time(int milliseconds, boost::xtime& xt) { 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 @@ inline void to_time(int milliseconds, boost::xtime& xt) xt.nsec -= NANOSECONDS_PER_SECOND; } } - #if defined(BOOST_HAS_PTHREADS) inline void to_timespec(const boost::xtime& xt, timespec& ts) { @@ -58,7 +57,7 @@ inline void to_timespec_duration(const boost::xtime& xt, timespec& ts) 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 @@ inline void to_duration(boost::xtime xt, int& milliseconds) 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 @@ inline void to_microduration(boost::xtime xt, int& microseconds) 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;