From c8479964a8abe6f40b37c0c3c31bd280a33039ae Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Sat, 1 Feb 2020 14:11:52 +0100 Subject: [PATCH] [sonar] const++ --- teshsuite/mc/mutex-handling/mutex-handling.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/teshsuite/mc/mutex-handling/mutex-handling.cpp b/teshsuite/mc/mutex-handling/mutex-handling.cpp index ed591b9870..4e00e3dd73 100644 --- a/teshsuite/mc/mutex-handling/mutex-handling.cpp +++ b/teshsuite/mc/mutex-handling/mutex-handling.cpp @@ -29,8 +29,8 @@ XBT_LOG_NEW_DEFAULT_CATEGORY(msg_test, "Messages specific for this msg example") static int receiver(const char* box_name) { - int* payload; auto mb = simgrid::s4u::Mailbox::by_name(box_name); + const int* payload; payload = static_cast(mb->get()); MC_assert(*payload == 1); -- 2.20.1