From: Arnaud Giersch Date: Tue, 2 Oct 2018 12:01:26 +0000 (+0200) Subject: Mark unused parameters. X-Git-Tag: v3_21~3^2~10 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/4ed65f82e4148522ff7e5a818ea61d6fa903ee7c Mark unused parameters. --- diff --git a/teshsuite/msg/cloud-two-tasks/cloud-two-tasks.c b/teshsuite/msg/cloud-two-tasks/cloud-two-tasks.c index d7a2e35435..6ea6bf7e39 100644 --- a/teshsuite/msg/cloud-two-tasks/cloud-two-tasks.c +++ b/teshsuite/msg/cloud-two-tasks/cloud-two-tasks.c @@ -9,7 +9,7 @@ XBT_LOG_NEW_DEFAULT_CATEGORY(msg_test, "Messages specific for this msg example") 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()); @@ -41,7 +41,7 @@ static int computation_fun(int argc, char* argv[]) 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"); diff --git a/teshsuite/msg/energy-ptask/energy-ptask.c b/teshsuite/msg/energy-ptask/energy-ptask.c index 8075c58b45..f70f90ef3b 100644 --- a/teshsuite/msg/energy-ptask/energy-ptask.c +++ b/teshsuite/msg/energy-ptask/energy-ptask.c @@ -16,7 +16,7 @@ XBT_LOG_NEW_DEFAULT_CATEGORY(msg_test, "Messages specific for this msg example") * 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(); diff --git a/teshsuite/msg/io-raw-storage/io-raw-storage.c b/teshsuite/msg/io-raw-storage/io-raw-storage.c index f1ddfbfb40..1b7fddd7df 100644 --- a/teshsuite/msg/io-raw-storage/io-raw-storage.c +++ b/teshsuite/msg/io-raw-storage/io-raw-storage.c @@ -7,7 +7,7 @@ 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()); diff --git a/teshsuite/msg/platform-properties/platform-properties.c b/teshsuite/msg/platform-properties/platform-properties.c index 58ed491ed7..67c06bf5c2 100644 --- a/teshsuite/msg/platform-properties/platform-properties.c +++ b/teshsuite/msg/platform-properties/platform-properties.c @@ -47,27 +47,27 @@ static void test_host(const char* hostname) 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; } -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; } -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; } -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(); diff --git a/teshsuite/simix/generic-simcalls/generic-simcalls.cpp b/teshsuite/simix/generic-simcalls/generic-simcalls.cpp index 6bc8cf51cd..c21b12da4b 100644 --- a/teshsuite/simix/generic-simcalls/generic-simcalls.cpp +++ b/teshsuite/simix/generic-simcalls/generic-simcalls.cpp @@ -31,7 +31,7 @@ static simgrid::kernel::Future kernel_wait_until(double date) return future; } -static int master(int argc, char* argv[]) +static int master(int /*argc*/, char** /*argv*/) { // Test the simple immediate execution: XBT_INFO("Start");