]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test/librados/watch_notify: fix warning
authorSage Weil <sage@inktank.com>
Fri, 22 Feb 2013 22:57:45 +0000 (14:57 -0800)
committerSage Weil <sage@inktank.com>
Fri, 22 Feb 2013 22:57:45 +0000 (14:57 -0800)
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 <sage@inktank.com>
src/test/librados/watch_notify.cc

index d6cb8a0cee3fe90f3521adeaa95893c63e1b2449..2fdb44dda8f96aa4147b8e43388146cecaa11f1c 100644 (file)
@@ -64,7 +64,7 @@ TEST(LibRadosWatchNotify, WatchNotifyTestPP) {
   ASSERT_EQ(0, ioctx.watch("foo", 0, &handle, &ctx));
   std::list<obj_watch_t> 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;