From: Martin Quinson Date: Wed, 15 Mar 2023 22:23:03 +0000 (+0100) Subject: Make it compile with all warnings enabled X-Git-Tag: v3.34~324 X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/ad89218daa4a402efc597c9c3b5bb38b79cce5bf Make it compile with all warnings enabled --- diff --git a/src/dag/loaders.cpp b/src/dag/loaders.cpp index 676b98b07f..438d8b6b0b 100644 --- a/src/dag/loaders.cpp +++ b/src/dag/loaders.cpp @@ -121,9 +121,11 @@ std::vector create_DAG_from_json(const std::string& filename) else if (dynamic_cast(parent_activity.get()) != nullptr) dynamic_cast(current.get())->set_source(dynamic_cast(parent_activity.get())->get_destination()); } + } else if (XBT_LOG_ISENABLED(dag_parsing, xbt_log_priority_debug)) { + std::stringstream ss; + ss << task["type"]; + XBT_DEBUG("Task type \"%s\" not supported.", ss.str().c_str()); } - else - XBT_DEBUG("Task type \"%s\" not supported.", task["type"]); dag.push_back(current); for (auto const& parent: task["parents"]) {