From 6d1daeae08d53ddd1ffe6401b48c45c522617521 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Thu, 30 Jan 2014 09:13:30 -0800 Subject: [PATCH] unittest_striper: fix warning MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- src/test/test_striper.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/test_striper.cc b/src/test/test_striper.cc index 2e6b0bc47622d..9946142d64608 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()); } -- 2.39.5