diff options
author | Sage Weil <sage.weil@dreamhost.com> | 2012-01-29 20:56:03 -0800 |
---|---|---|
committer | Sage Weil <sage.weil@dreamhost.com> | 2012-01-29 21:08:02 -0800 |
commit | d3590b5edfaa6385ae207518aaa11af570bcd0eb (patch) | |
tree | b94cba5286c73af16c22531ce1852a37abf33592 | |
parent | e9e212f8df27ba45f54a8429d515ca4f420d9838 (diff) | |
download | ceph-d3590b5edfaa6385ae207518aaa11af570bcd0eb.tar.gz |
qa: test/gather fix warning
warning: test/gather.cc:29:222: passing NULL to non-pointer argument 3 of ‘static testing::AssertionResult testing::internal::EqHelper::Compare(const char*, const char*, const T1&, T2*) [with T1 = long int, T2 = C_Gather]’ [-Wconversion-null]
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
-rw-r--r-- | src/test/gather.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/gather.cc b/src/test/gather.cc index 61797931eca..92bec7650c6 100644 --- a/src/test/gather.cc +++ b/src/test/gather.cc @@ -26,7 +26,7 @@ public: TEST(ContextGather, Constructor) { C_GatherBuilder gather(g_ceph_context); EXPECT_FALSE(gather.has_subs()); - EXPECT_EQ(NULL, gather.get()); + EXPECT_TRUE(gather.get() == NULL); } TEST(ContextGather, OneSub) { |