From a957c8903c9dd13041a0902b130f0e6543388ca2 Mon Sep 17 00:00:00 2001 From: onesphore Date: Fri, 29 Jun 2018 11:49:19 +0200 Subject: [PATCH] Minor changes --- src/mc/snapshot/unitTest/mc_snapshot_unit.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mc/snapshot/unitTest/mc_snapshot_unit.cpp b/src/mc/snapshot/unitTest/mc_snapshot_unit.cpp index b2698ea549..edb4cd343a 100644 --- a/src/mc/snapshot/unitTest/mc_snapshot_unit.cpp +++ b/src/mc/snapshot/unitTest/mc_snapshot_unit.cpp @@ -30,8 +30,7 @@ class BOOST_tests { RegionSnapshot region0; RegionSnapshot region; } prologue_return; - static prologue_return prologue(int n); - static void epilogue(); // common to the below 5 fxs + static prologue_return prologue(int n); // common to the below 5 fxs static void read_whole_region(); static void read_region_parts(); static void compare_whole_region(); @@ -91,7 +90,8 @@ BOOST_tests::prologue_return BOOST_tests::prologue(int n) { void* destination = mmap(nullptr, byte_size, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0); BOOST_CHECK_MESSAGE(source!=MAP_FAILED, "Could not allocate destination memory"); - return {.size = byte_size, .src = source, .dstn = destination, .region0 = std::move(region0), .region = std::move(region)}; + return {.size = byte_size, .src = source, .dstn = destination, + .region0 = std::move(region0), .region = std::move(region)}; } void -- 2.20.1