From 4026da0de7d7e43d855ff7ffcc9cd0cfb9955001 Mon Sep 17 00:00:00 2001 From: vng Date: Thu, 23 Aug 2012 09:22:04 +0300 Subject: [PATCH] Fix warnings. --- base/assert.hpp | 2 +- platform/platform_tests/video_timer_test.cpp | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/base/assert.hpp b/base/assert.hpp index 4f9166bf14..9146c2fcf7 100644 --- a/base/assert.hpp +++ b/base/assert.hpp @@ -69,7 +69,7 @@ namespace my #undef ASSERT #endif #define ASSERT(X, msg) -#define VERIFY(X, msg) (X) +#define VERIFY(X, msg) (void)(X) #define ASSERT_EQUAL(X, Y, msg) #define ASSERT_NOT_EQUAL(X, Y, msg) #define ASSERT_LESS(X, Y, msg) diff --git a/platform/platform_tests/video_timer_test.cpp b/platform/platform_tests/video_timer_test.cpp index 2dafbeb0d4..04c3797c50 100644 --- a/platform/platform_tests/video_timer_test.cpp +++ b/platform/platform_tests/video_timer_test.cpp @@ -17,9 +17,10 @@ void incrementValue(int & i) UNIT_TEST(TimerTest) { + /* int i = 0; -/* VideoTimer * videoTimer = CreatePThreadVideoTimer(bind(&incrementValue, ref(i))); + VideoTimer * videoTimer = CreatePThreadVideoTimer(bind(&incrementValue, ref(i))); LOG(LINFO, ("checking for approximately 60 cycles in second")); @@ -41,7 +42,8 @@ UNIT_TEST(TimerTest) threads::Sleep(200); - videoTimer->stop();*/ + videoTimer->stop(); + */ } #endif