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);
}
"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,
[](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) {