]> AND Public Git Repository - simgrid.git/blobdiff - src/surf/xml/surfxml_sax_cb.cpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
do not downcast activities to the wrong type just to get their name
[simgrid.git] / src / surf / xml / surfxml_sax_cb.cpp
index 3cf6edf3f1ed56f09d8cdf5d7d8b2f0ac4c58e97..06db5168d0335befc8564a2ce0d2ceea7f1dcba0 100644 (file)
@@ -350,7 +350,7 @@ void ETag_surfxml_include()
 
 /* Stag and Etag parse functions */
 void STag_surfxml_platform() {
-  XBT_ATTRIB_UNUSED double version = surf_parse_get_double(A_surfxml_platform_version);
+  double version = surf_parse_get_double(A_surfxml_platform_version);
 
   surf_parse_assert((version >= 1.0), "******* BIG FAT WARNING *********\n "
       "You're using an ancient XML file.\n"
@@ -1001,7 +1001,7 @@ void surf_parse_open(const std::string& file)
 
   surf_file_to_parse = surf_fopen(file, "r");
   if (surf_file_to_parse == nullptr)
-    throw std::invalid_argument(std::string("Unable to open ')") + file + "' from '" + simgrid::xbt::Path().get_name() +
+    throw std::invalid_argument(std::string("Unable to open '") + file + "' from '" + simgrid::xbt::Path().get_name() +
                                 "'. Does this file exist?");
   surf_input_buffer = surf_parse__create_buffer(surf_file_to_parse, YY_BUF_SIZE);
   surf_parse__switch_to_buffer(surf_input_buffer);