From 4aaca0f09db01d8039662a32dc7142bb53d30004 Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Tue, 5 Feb 2013 11:20:37 +0100 Subject: [PATCH] MSG_clean() was deprecated since SG 3.8. --- main.cpp | 2 +- simgrid_features.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index 9b0f8bf..e148574 100644 --- a/main.cpp +++ b/main.cpp @@ -234,7 +234,7 @@ int main(int argc, char* argv[]) "Compiled on " << version::date << "\n\n"; if (!parse_res || opt::help_requested) opt::usage(); - MSG_clean(); + res = MSG_clean(); exit(parse_res ? EXIT_NO_FAILURE : EXIT_FAILURE_ARGS); } XBT_INFO("%s v%s (%s)", opt::program_name.c_str(), version::num.c_str(), diff --git a/simgrid_features.h b/simgrid_features.h index 114fc09..4bcbb62 100644 --- a/simgrid_features.h +++ b/simgrid_features.h @@ -13,6 +13,8 @@ # define msg_host_t m_host_t # define msg_process_t m_process_t # define msg_task_t m_task_t +#else // =============================================================== // +# define MSG_clean() MSG_OK #endif // ============================================================== // #endif // !SIMGRID_FEATURES_H -- 2.39.5