From c6059038023434400f9dc4c98aec9838ede27bac Mon Sep 17 00:00:00 2001 From: Willem Jan Withagen Date: Thu, 5 Jan 2017 12:24:47 +0100 Subject: [PATCH] test/librbd/Clang: Clang complains about reinterpret_cast where static_cast is sufficient Signed-off-by: Willem Jan Withagen --- src/test/librbd/operation/test_mock_SnapshotCreateRequest.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/librbd/operation/test_mock_SnapshotCreateRequest.cc b/src/test/librbd/operation/test_mock_SnapshotCreateRequest.cc index 6c845bf2e05b5..df42ddf344ac2 100644 --- a/src/test/librbd/operation/test_mock_SnapshotCreateRequest.cc +++ b/src/test/librbd/operation/test_mock_SnapshotCreateRequest.cc @@ -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(NULL))); + .WillOnce(Return(static_cast(NULL))); EXPECT_CALL(mock_image_ctx, add_snap("snap1", _, _, _, _, _, _)); } -- 2.39.5