From: Greg Farnum Date: Thu, 26 Jun 2014 17:35:00 +0000 (-0700) Subject: test: use (unsigned)0 with gtest to avoid spurious warnings X-Git-Tag: v0.83~34 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e02957dbf749c94388041cd04f28957f5351fe33;p=ceph.git test: use (unsigned)0 with gtest to avoid spurious warnings Signed-off-by: Greg Farnum Reviewed-by: Sage Weil --- diff --git a/src/test/libradosstriper/striping.cc b/src/test/libradosstriper/striping.cc index 81b458d088f..3fe320ca02b 100644 --- a/src/test/libradosstriper/striping.cc +++ b/src/test/libradosstriper/striping.cc @@ -40,7 +40,7 @@ protected: ASSERT_LT(0, ioctx.getxattr(firstOid, "striper.layout.stripe_unit", xattrbl)); std::string s_xattr(xattrbl.c_str(), xattrbl.length()); // adds 0 byte at the end uint64_t stripe_unit = strtoll(s_xattr.c_str(), NULL, 10); - ASSERT_LT(0, stripe_unit); + ASSERT_LT((unsigned)0, stripe_unit); ASSERT_EQ(stripe_unit, exp_stripe_unit); 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