From: Sage Weil Date: Fri, 22 Feb 2013 22:57:45 +0000 (-0800) Subject: test/librados/watch_notify: fix warning X-Git-Tag: v0.59~141 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=64267eb3d8cecac4f447d9545a55741bade0292e;p=ceph.git test/librados/watch_notify: fix warning 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 --- diff --git a/src/test/librados/watch_notify.cc b/src/test/librados/watch_notify.cc index d6cb8a0cee3f..2fdb44dda8f9 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;