From 08f143449e19751e23fbc4e986f46f764ac03196 Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Sun, 14 Aug 2016 11:14:06 +0200 Subject: [PATCH] please sonar with some cleanups --- src/smpi/smpi_global.cpp | 2 +- src/surf/cpu_interface.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/smpi/smpi_global.cpp b/src/smpi/smpi_global.cpp index e67ecca66b..ad0791ecc4 100644 --- a/src/smpi/smpi_global.cpp +++ b/src/smpi/smpi_global.cpp @@ -99,7 +99,7 @@ void smpi_process_init(int *argc, char ***argv) if (argc != nullptr && argv != nullptr) { smx_process_t proc = SIMIX_process_self(); - proc->context->set_cleanup(MSG_process_cleanup_from_SIMIX); + proc->context->set_cleanup(&MSG_process_cleanup_from_SIMIX); char* instance_id = (*argv)[1]; int rank = xbt_str_parse_int((*argv)[2], "Invalid rank: %s"); int index = smpi_process_index_of_smx_process(proc); diff --git a/src/surf/cpu_interface.hpp b/src/surf/cpu_interface.hpp index 26d371d906..5e856572da 100644 --- a/src/surf/cpu_interface.hpp +++ b/src/surf/cpu_interface.hpp @@ -48,7 +48,7 @@ public: * @param speedPerPstate Processor speed (in Flops) of each pstate. This ignores any potential external load coming from a trace. * @param core The number of core of this Cpu */ - virtual Cpu *createCpu(simgrid::s4u::Host *host, std::vector *, int core)=0; + virtual Cpu *createCpu(simgrid::s4u::Host *host, std::vector *speedPerPstate, int core)=0; void updateActionsStateLazy(double now, double delta) override; void updateActionsStateFull(double now, double delta) override; -- 2.20.1