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>
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;