Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Comment name for unused parameters.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Sun, 15 Oct 2017 21:20:01 +0000 (23:20 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Mon, 16 Oct 2017 08:26:27 +0000 (10:26 +0200)
examples/s4u/actor-execute/s4u-actor-execute.cpp
examples/s4u/actor-lifetime/s4u-actor-lifetime.cpp
src/msg/msg_process.cpp
src/simix/smx_network.cpp

index 66f5af0..9fc417d 100644 (file)
@@ -5,7 +5,7 @@
 
 #include "simgrid/s4u.hpp"
 
-static int executor(std::vector<std::string> args)
+static int executor(std::vector<std::string> /*args*/)
 {
   /* this_actor::execute() tells SimGrid to pause the calling actor
    * until its host has computed the amount of flops passed as a parameter */
index 41a62d5..0c47c27 100644 (file)
@@ -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<std::string> args)
+  explicit sleeper(std::vector<std::string> /*args*/)
   {
     XBT_INFO("Hello! I go to sleep.");
     simcall_process_on_exit(SIMIX_process_self(), my_onexit, NULL);
index 465e4cf..7f673f7 100644 (file)
@@ -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<void()> code, void* data, sg_host_t host,
-                                          std::map<std::string, std::string>* properties, smx_actor_t parent_process)
+                                          std::map<std::string, std::string>* 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();
index 1c02f8c..ea85a58 100644 (file)
@@ -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)