std::ifstream f(filename);
auto data = nlohmann::json::parse(f);
std::vector<ActivityPtr> dag = {};
- std::map<std::string, std::vector<ActivityPtr>> successors = {};
+ std::map<std::string, std::vector<ActivityPtr>, std::less<>> successors = {};
std::map<ActivityPtr, Host*> comms_destinations = {};
ActivityPtr current;
#include <simgrid/modelchecker.h>
#include <cerrno>
+#include <cinttypes>
#include <cstdio> // setvbuf
#include <cstdlib>
#include <memory>
struct sockaddr_un addr = {};
addr.sun_family = AF_UNIX;
- snprintf(addr.sun_path, 64, "/tmp/simgrid-mc-%lu", static_cast<unsigned long>(msg->value));
+ snprintf(addr.sun_path, 64, "/tmp/simgrid-mc-%" PRIu64, msg->value);
auto addr_size = offsetof(struct sockaddr_un, sun_path) + strlen(addr.sun_path);
xbt_assert(connect(sock, (struct sockaddr*)&addr, addr_size) >= 0,
{
size_t bufsize = buffer_.size();
ssize_t copied = 0;
- char* whereto = static_cast<char*>(message);
+ auto* whereto = static_cast<char*>(message);
size_t todo = size;
if (bufsize > 0) {
XBT_DEBUG("%d %zu bytes (of %zu expected) are already in buffer", getpid(), bufsize, size);