]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test/librbd/Clang: Clang complains about reinterpret_cast where static_cast is sufficient
authorWillem Jan Withagen <wjw@digiware.nl>
Thu, 5 Jan 2017 11:24:47 +0000 (12:24 +0100)
committerWillem Jan Withagen <wjw@digiware.nl>
Thu, 12 Jan 2017 15:18:47 +0000 (16:18 +0100)
Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
src/test/librbd/operation/test_mock_SnapshotCreateRequest.cc

index 6c845bf2e05b5cbc0dc6dcee47d3400d0700b08d..df42ddf344ac203e103ebae0c77fb2489affd437 100644 (file)
@@ -88,7 +88,7 @@ public:
   void expect_update_snap_context(MockImageCtx &mock_image_ctx) {
     // state machine checks to ensure a refresh hasn't already added the snap
     EXPECT_CALL(mock_image_ctx, get_snap_info(_))
-                  .WillOnce(Return(reinterpret_cast<const librbd::SnapInfo*>(NULL)));
+                  .WillOnce(Return(static_cast<const librbd::SnapInfo*>(NULL)));
     EXPECT_CALL(mock_image_ctx, add_snap("snap1", _, _, _, _, _, _));
   }