From: Arnaud Giersch Date: Tue, 24 Oct 2017 19:19:44 +0000 (+0200) Subject: Unused parameters. X-Git-Tag: v3.18~397^2~14 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/a6a76e36485a11afb076ddd5dc5d691429b2d876 Unused parameters. --- diff --git a/src/simix/smx_global.cpp b/src/simix/smx_global.cpp index d6124367cc..0644ac793b 100644 --- a/src/simix/smx_global.cpp +++ b/src/simix/smx_global.cpp @@ -66,7 +66,7 @@ public: void (*SMPI_switch_data_segment)(int) = nullptr; int _sg_do_verbose_exit = 1; -static void inthandler(int ignored) +static void inthandler(int) { if ( _sg_do_verbose_exit ) { XBT_INFO("CTRL-C pressed. The current status will be displayed before exit (disable that behavior with option 'verbose-exit')."); @@ -79,7 +79,7 @@ static void inthandler(int ignored) } #ifndef _WIN32 -static void segvhandler(int signum, siginfo_t *siginfo, void *context) +static void segvhandler(int signum, siginfo_t* siginfo, void* /*context*/) { if (siginfo->si_signo == SIGSEGV && siginfo->si_code == SEGV_ACCERR) { fprintf(stderr, "Access violation detected.\n" diff --git a/src/surf/plugins/host_load.cpp b/src/surf/plugins/host_load.cpp index f1e039a858..eb057d18ae 100644 --- a/src/surf/plugins/host_load.cpp +++ b/src/surf/plugins/host_load.cpp @@ -125,7 +125,7 @@ static void onHostChange(simgrid::s4u::Host& host) } /* This callback is called when an action (computation, idle, ...) terminates */ -static void onActionStateChange(simgrid::surf::CpuAction* action, simgrid::surf::Action::State previous) +static void onActionStateChange(simgrid::surf::CpuAction* action, simgrid::surf::Action::State /*previous*/) { for (simgrid::surf::Cpu* const& cpu : action->cpus()) { simgrid::s4u::Host* host = cpu->getHost();