]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
test: Fix error with clang on DARWIN (LLVM 3.6.0svn)
authorDennis Schafroth <dennis@schafroth.dk>
Tue, 30 Jun 2015 18:15:23 +0000 (20:15 +0200)
committerKefu Chai <kchai@redhat.com>
Mon, 31 Aug 2015 07:35:57 +0000 (15:35 +0800)
Signed-off-by: Dennis Schafroth <dennis@schafroth.com>
src/test/librbd/test_librbd.cc

index c491533d1c29517bb12a8c8b175c5fd2647a88e7..fb015f65338c16c2ad30f75bc1cbd85c314edd76 100644 (file)
@@ -1960,7 +1960,7 @@ TEST_F(TestLibRBD, FlushAioPP)
     int order = 0;
     std::string name = get_temp_image_name();
     uint64_t size = 2 << 20;
-    size_t num_aios = 256;
+    const size_t num_aios = 256;
 
     ASSERT_EQ(0, create_image_pp(rbd, ioctx, name.c_str(), size, &order));
     ASSERT_EQ(0, rbd.open(ioctx, image, name.c_str(), NULL));