From a6a76e36485a11afb076ddd5dc5d691429b2d876 Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Tue, 24 Oct 2017 21:19:44 +0200 Subject: [PATCH 1/1] Unused parameters. --- src/simix/smx_global.cpp | 4 ++-- src/surf/plugins/host_load.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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(); -- 2.20.1