X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/1c017130b99530347566f9e070051d6edee8aad5..dce703bcd29ea7b8aa57d831bd228837c8d71004:/src/xbt/xbt_str_test.cpp diff --git a/src/xbt/xbt_str_test.cpp b/src/xbt/xbt_str_test.cpp index 182d5b0931..ec659e4c4d 100644 --- a/src/xbt/xbt_str_test.cpp +++ b/src/xbt/xbt_str_test.cpp @@ -35,7 +35,7 @@ template void test_parse_error(F function, const std::string& name, template void test_parse_ok(F function, const std::string& name, const char* str, T value) { INFO(name); - auto variable = static_cast(-9999); + T variable; REQUIRE_NOTHROW(variable = function(str, "Parse error")); REQUIRE(variable == value); /* Fail to parse str */ }