From: Arnaud Giersch Date: Mon, 31 May 2021 21:01:42 +0000 (+0200) Subject: Die on unwanted function calls. X-Git-Tag: v3.28~189 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/7d3d8c0086ff6a566175b8c22d1268ebde887e80 Die on unwanted function calls. --- diff --git a/include/simgrid/kernel/routing/EmptyZone.hpp b/include/simgrid/kernel/routing/EmptyZone.hpp index c1eb7f7de3..b1f820c8bd 100644 --- a/include/simgrid/kernel/routing/EmptyZone.hpp +++ b/include/simgrid/kernel/routing/EmptyZone.hpp @@ -7,6 +7,7 @@ #define SURF_ROUTING_NONE_HPP_ #include +#include namespace simgrid { namespace kernel { @@ -25,7 +26,7 @@ public: void get_local_route(const NetPoint* src, const NetPoint* dst, Route* into, double* latency) override { - /* There can't be route in an Empty zone */ + xbt_die("There can't be route in an Empty zone"); } void get_graph(const s_xbt_graph_t* graph, std::map>* /*nodes*/, diff --git a/src/kernel/routing/EmptyZone.cpp b/src/kernel/routing/EmptyZone.cpp index e33e1aff3e..256bc9770b 100644 --- a/src/kernel/routing/EmptyZone.cpp +++ b/src/kernel/routing/EmptyZone.cpp @@ -18,7 +18,7 @@ namespace routing { void EmptyZone::get_graph(const s_xbt_graph_t* /*graph*/, std::map>* /*nodes*/, std::map>* /*edges*/) { - XBT_ERROR("No routing no graph"); + xbt_die("No routing no graph"); } } // namespace routing } // namespace kernel