From ad89218daa4a402efc597c9c3b5bb38b79cce5bf Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Wed, 15 Mar 2023 23:23:03 +0100 Subject: [PATCH] Make it compile with all warnings enabled --- src/dag/loaders.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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"]) { -- 2.20.1