From: Arnaud Giersch Date: Wed, 4 Jul 2018 14:02:32 +0000 (+0200) Subject: Extract assignment from expression (sonar). X-Git-Tag: v3_21~489 X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/609c658586a29857fd47cbab055c3d20fdf63a7c Extract assignment from expression (sonar). --- diff --git a/src/mc/sosp/PageStore_test.cpp b/src/mc/sosp/PageStore_test.cpp index 3a84d548c7..8ed278fa21 100644 --- a/src/mc/sosp/PageStore_test.cpp +++ b/src/mc/sosp/PageStore_test.cpp @@ -105,7 +105,8 @@ void BOOST_tests::reallocate_page() void BOOST_tests::new_content(void* data, std::size_t size) { - ::memset(data, ++value, size); + value++; + ::memset(data, value, size); } void* BOOST_tests::getpage()