Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r65073 - sandbox/chrono/libs/chrono/test
From: vicente.botet_at_[hidden]
Date: 2010-08-28 04:16:50


Author: viboes
Date: 2010-08-28 04:16:47 EDT (Sat, 28 Aug 2010)
New Revision: 65073
URL: http://svn.boost.org/trac/boost/changeset/65073

Log:
suppress warning 4100
eliminate ;; -pedantic warning
Text files modified:
   sandbox/chrono/libs/chrono/test/manipulate_clock_object.cpp | 10 ++++++++--
   1 files changed, 8 insertions(+), 2 deletions(-)

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-08-28 04:16:47 EDT (Sat, 28 Aug 2010)
@@ -33,8 +33,14 @@
 
 using namespace boost::chrono;
 
-
+#if defined _MSC_VER
+#pragma warning(push)
+#pragma warning(disable:4100)
+#endif
 void manipulate_clock_object(system_clock clock)
+#if defined _MSC_VER
+#pragma warning(pop)
+#endif
 {
     system_clock::duration delay = milliseconds(5);
     system_clock::time_point start = clock.now();
@@ -44,7 +50,7 @@
     system_clock::time_point stop = clock.now();
     system_clock::duration elapsed = stop - start;
     std::cout << "paused " << nanoseconds(elapsed).count() << " nanoseconds\n";
-};
+}
 
 
 int main()


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