From: Arnaud Giersch Date: Tue, 5 Feb 2013 10:20:37 +0000 (+0100) Subject: MSG_clean() was deprecated since SG 3.8. X-Git-Tag: v0.3~4 X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/loba.git/commitdiff_plain/4aaca0f09db01d8039662a32dc7142bb53d30004 MSG_clean() was deprecated since SG 3.8. --- 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