From 66215bd4bdf392f98c23e2ef41036da67bf91eb0 Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Tue, 8 Feb 2022 15:52:52 +0100 Subject: [PATCH] Avoid shadowed declarations. --- teshsuite/s4u/dependencies/dependencies.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/teshsuite/s4u/dependencies/dependencies.cpp b/teshsuite/s4u/dependencies/dependencies.cpp index 699f27c00e..d367dd78aa 100644 --- a/teshsuite/s4u/dependencies/dependencies.cpp +++ b/teshsuite/s4u/dependencies/dependencies.cpp @@ -9,9 +9,9 @@ XBT_LOG_NEW_DEFAULT_CATEGORY(dependencies, "Logging specific to this test"); int main(int argc, char** argv) { - simgrid::s4u::Engine e(&argc, argv); + simgrid::s4u::Engine engine(&argc, argv); xbt_assert(argc > 1, "Usage: %s platform_file\n\nExample: %s two_clusters.xml", argv[0], argv[0]); - e.load_platform(argv[1]); + engine.load_platform(argv[1]); simgrid::s4u::Activity::on_completion_cb([](simgrid::s4u::Activity const& activity) { const auto* exec = dynamic_cast(&activity); @@ -63,7 +63,7 @@ int main(int argc, char** argv) } /* scheduling parameters */ - const auto hosts = e.get_all_hosts(); + const auto hosts = engine.get_all_hosts(); std::vector host_list = {hosts[2], hosts[4]}; std::vector flops_amounts = {2000000, 1000000}; std::vector bytes_amounts = {0, 2000000, 3000000, 0}; @@ -73,6 +73,6 @@ int main(int argc, char** argv) C->set_flops_amounts(flops_amounts)->set_bytes_amounts(bytes_amounts)->set_hosts(host_list); D->set_flops_amounts(flops_amounts)->set_bytes_amounts(bytes_amounts)->set_hosts(host_list); - e.run(); + engine.run(); return 0; } -- 2.20.1