Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add some _XBT_GNUC_UNUSED to avoid compilation warnings with NDEBUG
[simgrid.git] / src / xbt / graph.c
index 3d7cfca..d2f2edf 100644 (file)
@@ -627,7 +627,7 @@ xbt_graph_t xbt_graph_read(const char *filename,
   ETag_graphxml_edge_fun = __parse_edge;
 
   xbt_graph_parse_open(filename);
-  int res;
+  _XBT_GNUC_UNUSED int res;
   res = (*xbt_graph_parse) ();
   xbt_assert(!res, "Parse error in %s", filename);
   xbt_graph_parse_close();