]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
test: use 0U with gtest to avoid spurious warnings 2053/head
authorLoic Dachary <loic@dachary.org>
Tue, 1 Jul 2014 07:41:21 +0000 (09:41 +0200)
committerLoic Dachary <loic@dachary.org>
Tue, 1 Jul 2014 07:41:21 +0000 (09:41 +0200)
Signed-off-by: Loic Dachary <loic@dachary.org>
src/test/libradosstriper/striping.cc

index c7b6ce5813f6dafa48b6f05e06f03d2c7dafb9fa..930e1f3eaa703f7f3e4aaa92a52cf74312591362 100644 (file)
@@ -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