From af54673cde8c28e9b632e0ba95318ea161c1d76c Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Sun, 15 Oct 2017 23:06:05 +0200 Subject: [PATCH] Move variable defintion out of header file. --- include/simgrid/jedule/jedule.hpp | 3 --- src/instr/jedule/jedule_platform.cpp | 5 +++++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/include/simgrid/jedule/jedule.hpp b/include/simgrid/jedule/jedule.hpp index 0ea9ab82fe..eb25b52fbe 100644 --- a/include/simgrid/jedule/jedule.hpp +++ b/include/simgrid/jedule/jedule.hpp @@ -14,9 +14,6 @@ #if SIMGRID_HAVE_JEDULE -XBT_ATTRIB_UNUSED static std::unordered_map host2_simgrid_parent_container; -XBT_ATTRIB_UNUSED static std::unordered_map container_name2container; - namespace simgrid { namespace jedule{ diff --git a/src/instr/jedule/jedule_platform.cpp b/src/instr/jedule/jedule_platform.cpp index 877905d18b..133b1f6684 100644 --- a/src/instr/jedule/jedule_platform.cpp +++ b/src/instr/jedule/jedule_platform.cpp @@ -10,6 +10,11 @@ #if SIMGRID_HAVE_JEDULE +namespace { +std::unordered_map host2_simgrid_parent_container; +std::unordered_map container_name2container; +} + namespace simgrid { namespace jedule { Subset::Subset(int start_idx, int end_idx, Container* parent) -- 2.20.1