X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/cdac506670725ae4fe40b3b1a31ceeb9488ce53a..2aefc0268e22dd27a6f3e7f0d60990c055c4ee4b:/src/bindings/python/simgrid_python.cpp diff --git a/src/bindings/python/simgrid_python.cpp b/src/bindings/python/simgrid_python.cpp index 211e65053e..05d124e876 100644 --- a/src/bindings/python/simgrid_python.cpp +++ b/src/bindings/python/simgrid_python.cpp @@ -32,7 +32,9 @@ namespace { static std::string get_simgrid_version() { - int major, minor, patch; + int major; + int minor; + int patch; sg_version_get(&major, &minor, &patch); return simgrid::xbt::string_printf("%i.%i.%i", major, minor, patch); } @@ -62,7 +64,7 @@ PYBIND11_MODULE(simgrid, m) "Block the current actor, computing the given amount of flops at the given priority, see :cpp:func:`void " "simgrid::s4u::this_actor::execute(double, double)`", py::arg("flops"), py::arg("priority") = 1); - m2.def("get_host", &simgrid::s4u::this_actor::get_host, "Retrives host on which the current actor is located"); + m2.def("get_host", &simgrid::s4u::this_actor::get_host, "Retrieves host on which the current actor is located"); m2.def("migrate", &simgrid::s4u::this_actor::migrate, "Moves the current actor to another host, see :cpp:func:`void simgrid::s4u::this_actor::migrate()`", py::arg("dest")); m2.def("sleep_for", sleep_for_fun, @@ -77,7 +79,7 @@ PYBIND11_MODULE(simgrid, m) [](py::object fun) { ActorPtr act = Actor::self(); simgrid::s4u::this_actor::on_exit( - [act, fun](int ignored, void* data) { + [act, fun](int /*ignored*/, void* /*data*/) { try { fun(); } catch (py::error_already_set& e) {