From: Arnaud Giersch Date: Sun, 15 Oct 2017 21:20:01 +0000 (+0200) Subject: Comment name for unused parameters. X-Git-Tag: v3.18~443^2~5 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/4529e0f4ae3629d4f1118db0d01c6908d7c77616 Comment name for unused parameters. --- diff --git a/examples/s4u/actor-execute/s4u-actor-execute.cpp b/examples/s4u/actor-execute/s4u-actor-execute.cpp index 66f5af0acf..9fc417d823 100644 --- a/examples/s4u/actor-execute/s4u-actor-execute.cpp +++ b/examples/s4u/actor-execute/s4u-actor-execute.cpp @@ -5,7 +5,7 @@ #include "simgrid/s4u.hpp" -static int executor(std::vector args) +static int executor(std::vector /*args*/) { /* this_actor::execute() tells SimGrid to pause the calling actor * until its host has computed the amount of flops passed as a parameter */ diff --git a/examples/s4u/actor-lifetime/s4u-actor-lifetime.cpp b/examples/s4u/actor-lifetime/s4u-actor-lifetime.cpp index 41a62d5743..0c47c27cf0 100644 --- a/examples/s4u/actor-lifetime/s4u-actor-lifetime.cpp +++ b/examples/s4u/actor-lifetime/s4u-actor-lifetime.cpp @@ -8,7 +8,7 @@ XBT_LOG_NEW_DEFAULT_CATEGORY(test, "Messages specific for this s4u example"); /* Executed on process termination, to display a message helping to understand the output */ -static int my_onexit(void* ignored1, void* ignored2) +static int my_onexit(void*, void*) { XBT_INFO("Exiting now (done sleeping or got killed)."); return 0; @@ -18,7 +18,7 @@ static int my_onexit(void* ignored1, void* ignored2) class sleeper { public: - explicit sleeper(std::vector args) + explicit sleeper(std::vector /*args*/) { XBT_INFO("Hello! I go to sleep."); simcall_process_on_exit(SIMIX_process_self(), my_onexit, NULL); diff --git a/src/msg/msg_process.cpp b/src/msg/msg_process.cpp index 465e4cffef..7f673f78fa 100644 --- a/src/msg/msg_process.cpp +++ b/src/msg/msg_process.cpp @@ -52,7 +52,8 @@ void MSG_process_cleanup_from_SIMIX(smx_actor_t smx_actor) /* This function creates a MSG process. It has the prototype enforced by SIMIX_function_register_process_create */ smx_actor_t MSG_process_create_from_SIMIX(const char* name, std::function code, void* data, sg_host_t host, - std::map* properties, smx_actor_t parent_process) + std::map* properties, + smx_actor_t /*parent_process*/) { msg_process_t p = MSG_process_create_from_stdfunc(name, std::move(code), data, host, properties); return p == nullptr ? nullptr : p->getImpl(); diff --git a/src/simix/smx_network.cpp b/src/simix/smx_network.cpp index 1c02f8c621..ea85a581f3 100644 --- a/src/simix/smx_network.cpp +++ b/src/simix/smx_network.cpp @@ -84,7 +84,7 @@ XBT_PRIVATE void simcall_HANDLER_comm_send(smx_simcall_t simcall, smx_actor_t sr simcall_HANDLER_comm_wait(simcall, comm, timeout); } XBT_PRIVATE smx_activity_t simcall_HANDLER_comm_isend( - smx_simcall_t simcall, smx_actor_t src_proc, smx_mailbox_t mbox, double task_size, double rate, void* src_buff, + smx_simcall_t /*simcall*/, smx_actor_t src_proc, smx_mailbox_t mbox, double task_size, double rate, void* src_buff, size_t src_buff_size, int (*match_fun)(void*, void*, simgrid::kernel::activity::CommImpl*), void (*clean_fun)(void*), // used to free the synchro in case of problem after a detached send void (*copy_data_fun)(smx_activity_t, void*, size_t), // used to copy data if not default one @@ -163,8 +163,8 @@ XBT_PRIVATE void simcall_HANDLER_comm_recv(smx_simcall_t simcall, smx_actor_t re simcall_HANDLER_comm_wait(simcall, comm, timeout); } -XBT_PRIVATE smx_activity_t simcall_HANDLER_comm_irecv(smx_simcall_t simcall, smx_actor_t receiver, smx_mailbox_t mbox, - void* dst_buff, size_t* dst_buff_size, +XBT_PRIVATE smx_activity_t simcall_HANDLER_comm_irecv(smx_simcall_t /*simcall*/, smx_actor_t receiver, + smx_mailbox_t mbox, void* dst_buff, size_t* dst_buff_size, simix_match_func_t match_fun, void (*copy_data_fun)(smx_activity_t, void*, size_t), void* data, double rate)