|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r65522 - in sandbox/chrono/libs/chrono/test: . clock/system
From: vicente.botet_at_[hidden]
Date: 2010-09-21 16:24:44
Author: viboes
Date: 2010-09-21 16:24:44 EDT (Tue, 21 Sep 2010)
New Revision: 65522
URL: http://svn.boost.org/trac/boost/changeset/65522
Log:
Chrono fix warnings
Text files modified:
sandbox/chrono/libs/chrono/test/clock/system/to_time_t.pass.cpp | 1 +
sandbox/chrono/libs/chrono/test/manipulate_clock_object.cpp | 2 +-
2 files changed, 2 insertions(+), 1 deletions(-)
Modified: sandbox/chrono/libs/chrono/test/clock/system/to_time_t.pass.cpp
==============================================================================
--- sandbox/chrono/libs/chrono/test/clock/system/to_time_t.pass.cpp (original)
+++ sandbox/chrono/libs/chrono/test/clock/system/to_time_t.pass.cpp 2010-09-21 16:24:44 EDT (Tue, 21 Sep 2010)
@@ -25,5 +25,6 @@
{
typedef boost::chrono::system_clock C;
std::time_t t1 = C::to_time_t(C::now());
+ (void)t1;
return 0;
}
Modified: sandbox/chrono/libs/chrono/test/manipulate_clock_object.cpp
==============================================================================
--- sandbox/chrono/libs/chrono/test/manipulate_clock_object.cpp (original)
+++ sandbox/chrono/libs/chrono/test/manipulate_clock_object.cpp 2010-09-21 16:24:44 EDT (Tue, 21 Sep 2010)
@@ -45,7 +45,7 @@
system_clock::duration delay = milliseconds(5);
system_clock::time_point start = clock.now();
- while (clock.now() - start <= delay);
+ while ((clock.now() - start) <= delay) {}
system_clock::time_point stop = clock.now();
system_clock::duration elapsed = stop - start;
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