From: Sage Weil Date: Thu, 30 Jan 2014 17:13:30 +0000 (-0800) Subject: unittest_striper: fix warning X-Git-Tag: v0.78~247 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=6d1daeae08d53ddd1ffe6401b48c45c522617521;p=ceph.git unittest_striper: fix warning In file included from test/test_striper.cc:1:0: ../src/gtest/include/gtest/gtest.h: In function ‘testing::AssertionResult testing::internal::CmpHelperEQ(const char*, const char*, const T1&, const T2&) [with T1 = int, T2 = unsigned 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 = int, T2 = unsigned int, bool lhs_is_null_literal = false]’ test/test_striper.cc:57:223: 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/test_striper.cc b/src/test/test_striper.cc index 2e6b0bc4762..9946142d646 100644 --- a/src/test/test_striper.cc +++ b/src/test/test_striper.cc @@ -54,7 +54,7 @@ TEST(Striper, EmptyPartialResult) bufferlist outbl; r.assemble_result(g_ceph_context, outbl, false); - ASSERT_EQ(65536, outbl.length()); + ASSERT_EQ(65536u, outbl.length()); }