From: Arnaud Giersch Date: Thu, 18 Apr 2019 12:16:17 +0000 (+0200) Subject: Restore warning for unit-less values. X-Git-Tag: v3.22.2~96 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/6d4ada780dde0b81879a78d8e2f10644dd406f20?ds=sidebyside Restore warning for unit-less values. --- diff --git a/src/smpi/internals/smpi_utils.cpp b/src/smpi/internals/smpi_utils.cpp index 931d3ecba0..ae8df4423a 100644 --- a/src/smpi/internals/smpi_utils.cpp +++ b/src/smpi/internals/smpi_utils.cpp @@ -49,7 +49,7 @@ std::vector parse_factor(const std::string& smpi_coef_string) } } else { try { - fact.values.push_back(surf_parse_get_time((*factor_iter).c_str(), "smpi factor", std::to_string(smpi_factor.size() + 1) + ": " + *factor_iter)); + fact.values.push_back(surf_parse_get_time((*factor_iter).c_str(), "smpi factor", "")); } catch (std::invalid_argument& ia) { throw std::invalid_argument(std::string("Invalid factor value ") + std::to_string(iteration) + " in chunk " + std::to_string(smpi_factor.size() + 1) + ": " + *factor_iter); diff --git a/src/surf/xml/surfxml_sax_cb.cpp b/src/surf/xml/surfxml_sax_cb.cpp index e57ae9f91c..ef5aa096f3 100644 --- a/src/surf/xml/surfxml_sax_cb.cpp +++ b/src/surf/xml/surfxml_sax_cb.cpp @@ -171,7 +171,7 @@ unit_scale::unit_scale(std::initializer_list