From 917ef157bb791a010d3baafe1d9373d552a5124c Mon Sep 17 00:00:00 2001 From: Loic Dachary Date: Tue, 1 Jul 2014 09:41:21 +0200 Subject: [PATCH] test: use 0U with gtest to avoid spurious warnings Signed-off-by: Loic Dachary --- src/test/libradosstriper/striping.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/libradosstriper/striping.cc b/src/test/libradosstriper/striping.cc index c7b6ce5813f6d..930e1f3eaa703 100644 --- a/src/test/libradosstriper/striping.cc +++ b/src/test/libradosstriper/striping.cc @@ -45,7 +45,7 @@ protected: ASSERT_LT(0, ioctx.getxattr(firstOid, "striper.layout.stripe_count", xattrbl)); s_xattr = std::string(xattrbl.c_str(), xattrbl.length()); // adds 0 byte at the end uint64_t stripe_count = strtoll(s_xattr.c_str(), NULL, 10); - ASSERT_LT(0, stripe_count); + ASSERT_LT(0U, stripe_count); ASSERT_EQ(stripe_count, exp_stripe_count); ASSERT_LT(0, ioctx.getxattr(firstOid, "striper.layout.object_size", xattrbl)); s_xattr = std::string(xattrbl.c_str(), xattrbl.length()); // adds 0 byte at the end -- 2.47.3