Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Reduce verbosity of the appveyor manual test, and fix ctest invocation
[simgrid.git] / examples / msg / masterslave / masterslave_forwarder.c
index 733b326..01e1eb7 100644 (file)
@@ -43,7 +43,7 @@ int master(int argc, char *argv[])
 
   int i;
 
-  _XBT_GNUC_UNUSED int res = sscanf(argv[1], "%d", &number_of_tasks);
+  XBT_ATTRIB_UNUSED int res = sscanf(argv[1], "%d", &number_of_tasks);
   xbt_assert(res,"Invalid argument %s\n", argv[1]);
   res = sscanf(argv[2], "%lg", &task_comp_size);
   xbt_assert(res, "Invalid argument %s\n", argv[2]);
@@ -63,7 +63,7 @@ int master(int argc, char *argv[])
     }
   }
 
-  {                             /* Process organisation */
+  {                             /* Process organization */
     slaves_count = argc - 4;
     slaves = xbt_new0(msg_host_t, slaves_count);
 
@@ -107,7 +107,7 @@ int master(int argc, char *argv[])
 int slave(int argc, char *argv[])
 {
   msg_task_t task = NULL;
-  _XBT_GNUC_UNUSED int res;
+  XBT_ATTRIB_UNUSED int res;
   while (1) {
     res = MSG_task_receive(&(task),MSG_host_get_name(MSG_host_self()));
     xbt_assert(res == MSG_OK, "MSG_task_get failed");
@@ -135,7 +135,7 @@ int forwarder(int argc, char *argv[])
   int slaves_count;
   msg_host_t *slaves;
 
-  {                             /* Process organisation */
+  {                             /* Process organization */
     slaves_count = argc - 1;
     slaves = xbt_new0(msg_host_t, slaves_count);