From 64267eb3d8cecac4f447d9545a55741bade0292e Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Fri, 22 Feb 2013 14:57:45 -0800 Subject: [PATCH] test/librados/watch_notify: fix warning MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit In file included from test/librados/watch_notify.cc:8:0: ../src/gtest/include/gtest/gtest.h: In function ‘testing::AssertionResult testing::internal::CmpHelperEQ(const char*, const char*, const T1&, const T2&) [with T1 = long unsigned int, T2 = int]’: ../src/gtest/include/gtest/gtest.h:1300:30: instantiated from ‘static testing::AssertionResult testing::internal::EqHelper::Compare(const char*, const char*, const T1&, const T2&) [with T1 = long unsigned int, T2 = int, bool lhs_is_null_literal = false]’ test/librados/watch_notify.cc:67:224: instantiated from here warning: ../src/gtest/include/gtest/gtest.h:1263:3: comparison between signed and unsigned integer expressions [-Wsign-compare] Signed-off-by: Sage Weil --- src/test/librados/watch_notify.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/librados/watch_notify.cc b/src/test/librados/watch_notify.cc index d6cb8a0cee3fe..2fdb44dda8f96 100644 --- a/src/test/librados/watch_notify.cc +++ b/src/test/librados/watch_notify.cc @@ -64,7 +64,7 @@ TEST(LibRadosWatchNotify, WatchNotifyTestPP) { ASSERT_EQ(0, ioctx.watch("foo", 0, &handle, &ctx)); std::list watches; ASSERT_EQ(0, ioctx.list_watchers("foo", &watches)); - ASSERT_EQ(watches.size(), 1); + ASSERT_EQ(watches.size(), 1u); bufferlist bl2; ASSERT_EQ(0, ioctx.notify("foo", 0, bl2)); TestAlarm alarm; -- 2.39.5