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;