From: Loic Dachary Date: Tue, 1 Jul 2014 07:41:21 +0000 (+0200) Subject: test: use 0U with gtest to avoid spurious warnings X-Git-Tag: v0.84~162^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F2053%2Fhead;p=ceph.git test: use 0U with gtest to avoid spurious warnings Signed-off-by: Loic Dachary --- diff --git a/src/test/libradosstriper/striping.cc b/src/test/libradosstriper/striping.cc index c7b6ce5813f..930e1f3eaa7 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