Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Unused parameters argc/argv.
[simgrid.git] / examples / deprecated / msg / mc / bugged1_liveness.c
index 95880eb..8fd8490 100644 (file)
@@ -34,7 +34,7 @@ static void garbage_stack(void) {
 }
 #endif
 
-static int coordinator(int argc, char *argv[])
+static int coordinator(XBT_ATTRIB_UNUSED int argc, XBT_ATTRIB_UNUSED char* argv[])
 {
   int CS_used          = 0;
   msg_task_t task      = NULL;
@@ -84,6 +84,7 @@ static int coordinator(int argc, char *argv[])
 
 static int client(int argc, char *argv[])
 {
+  xbt_assert(argc == 2);
   int my_pid = MSG_process_get_PID(MSG_process_self());
 
   char *my_mailbox = xbt_strdup(argv[1]);