Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Mark unused parameters.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Tue, 2 Oct 2018 12:01:26 +0000 (14:01 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Tue, 2 Oct 2018 12:02:40 +0000 (14:02 +0200)
teshsuite/msg/cloud-two-tasks/cloud-two-tasks.c
teshsuite/msg/energy-ptask/energy-ptask.c
teshsuite/msg/io-raw-storage/io-raw-storage.c
teshsuite/msg/platform-properties/platform-properties.c
teshsuite/simix/generic-simcalls/generic-simcalls.cpp

index d7a2e35..6ea6bf7 100644 (file)
@@ -9,7 +9,7 @@ XBT_LOG_NEW_DEFAULT_CATEGORY(msg_test, "Messages specific for this msg example")
 
 msg_task_t atask = NULL;
 
 
 msg_task_t atask = NULL;
 
-static int computation_fun(int argc, char* argv[])
+static int computation_fun(XBT_ATTRIB_UNUSED int argc, XBT_ATTRIB_UNUSED char* argv[])
 {
   const char* pr_name   = MSG_process_get_name(MSG_process_self());
   const char* host_name = MSG_host_get_name(MSG_host_self());
 {
   const char* pr_name   = MSG_process_get_name(MSG_process_self());
   const char* host_name = MSG_host_get_name(MSG_host_self());
@@ -41,7 +41,7 @@ static int computation_fun(int argc, char* argv[])
   return 0;
 }
 
   return 0;
 }
 
-static int master_main(int argc, char* argv[])
+static int master_main(XBT_ATTRIB_UNUSED int argc, XBT_ATTRIB_UNUSED char* argv[])
 {
   msg_host_t pm0 = MSG_host_by_name("Fafard");
   msg_vm_t vm0   = MSG_vm_create_core(pm0, "VM0");
 {
   msg_host_t pm0 = MSG_host_by_name("Fafard");
   msg_vm_t vm0   = MSG_vm_create_core(pm0, "VM0");
index 8075c58..f70f90e 100644 (file)
@@ -16,7 +16,7 @@ XBT_LOG_NEW_DEFAULT_CATEGORY(msg_test, "Messages specific for this msg example")
  *   interfaces, but it's not possible ATM).
  */
 
  *   interfaces, but it's not possible ATM).
  */
 
-static int runner(int argc, char* argv[])
+static int runner(XBT_ATTRIB_UNUSED int argc, XBT_ATTRIB_UNUSED char* argv[])
 {
   /* Retrieve the list of all hosts as an array of hosts */
   int host_count    = MSG_get_host_number();
 {
   /* Retrieve the list of all hosts as an array of hosts */
   int host_count    = MSG_get_host_number();
index f1ddfbf..1b7fddd 100644 (file)
@@ -7,7 +7,7 @@
 
 XBT_LOG_NEW_DEFAULT_CATEGORY(storage, "Messages specific for this simulation");
 
 
 XBT_LOG_NEW_DEFAULT_CATEGORY(storage, "Messages specific for this simulation");
 
-static int host(int argc, char* argv[])
+static int host(XBT_ATTRIB_UNUSED int argc, XBT_ATTRIB_UNUSED char* argv[])
 {
   const char* host_name = MSG_host_get_name(MSG_host_self());
 
 {
   const char* host_name = MSG_host_get_name(MSG_host_self());
 
index 58ed491..67c06bf 100644 (file)
@@ -47,27 +47,27 @@ static void test_host(const char* hostname)
   xbt_dict_free(&props);
 }
 
   xbt_dict_free(&props);
 }
 
-static int alice(int argc, char* argv[])
+static int alice(XBT_ATTRIB_UNUSED int argc, XBT_ATTRIB_UNUSED char* argv[])
 { /* Dump what we have on the current host */
   test_host("host1");
   return 0;
 }
 
 { /* Dump what we have on the current host */
   test_host("host1");
   return 0;
 }
 
-static int carole(int argc, char* argv[])
+static int carole(XBT_ATTRIB_UNUSED int argc, XBT_ATTRIB_UNUSED char* argv[])
 {                       /* Dump what we have on a remote host */
   MSG_process_sleep(1); // Wait for alice to be done with its experiment
   test_host("host1");
   return 0;
 }
 
 {                       /* Dump what we have on a remote host */
   MSG_process_sleep(1); // Wait for alice to be done with its experiment
   test_host("host1");
   return 0;
 }
 
-static int david(int argc, char* argv[])
+static int david(XBT_ATTRIB_UNUSED int argc, XBT_ATTRIB_UNUSED char* argv[])
 {                       /* Dump what we have on a remote host */
   MSG_process_sleep(2); // Wait for alice and carole to be done with its experiment
   test_host("node-0.simgrid.org");
   return 0;
 }
 
 {                       /* Dump what we have on a remote host */
   MSG_process_sleep(2); // Wait for alice and carole to be done with its experiment
   test_host("node-0.simgrid.org");
   return 0;
 }
 
-static int bob(int argc, char* argv[])
+static int bob(XBT_ATTRIB_UNUSED int argc, XBT_ATTRIB_UNUSED char* argv[])
 {
   /* this host also tests the properties of the AS*/
   msg_as_t root = MSG_zone_get_root();
 {
   /* this host also tests the properties of the AS*/
   msg_as_t root = MSG_zone_get_root();
index 6bc8cf5..c21b12d 100644 (file)
@@ -31,7 +31,7 @@ static simgrid::kernel::Future<void> kernel_wait_until(double date)
   return future;
 }
 
   return future;
 }
 
-static int master(int argc, char* argv[])
+static int master(int /*argc*/, char** /*argv*/)
 {
   // Test the simple immediate execution:
   XBT_INFO("Start");
 {
   // Test the simple immediate execution:
   XBT_INFO("Start");