From: Martin Quinson Date: Mon, 29 May 2017 15:18:16 +0000 (+0200) Subject: please sonar X-Git-Tag: v3.16~186 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/b92fdaa931223de8404c999f3381b09ceabb8b74 please sonar --- diff --git a/src/plugins/vm/VirtualMachineImpl.cpp b/src/plugins/vm/VirtualMachineImpl.cpp index a678568321..a5d3272ed3 100644 --- a/src/plugins/vm/VirtualMachineImpl.cpp +++ b/src/plugins/vm/VirtualMachineImpl.cpp @@ -219,7 +219,7 @@ void VirtualMachineImpl::shutdown(smx_actor_t issuer) case SURF_VM_STATE_DESTROYED: stateName = "destroyed"; break; - case SURF_VM_STATE_RUNNING: + default: /* SURF_VM_STATE_RUNNING or unexpected values */ THROW_IMPOSSIBLE; break; } diff --git a/src/simix/ActorImpl.cpp b/src/simix/ActorImpl.cpp index 2930fc1aed..050fe6246f 100644 --- a/src/simix/ActorImpl.cpp +++ b/src/simix/ActorImpl.cpp @@ -121,7 +121,6 @@ void SIMIX_process_cleanup(smx_actor_t process) /* the comm will be freed right now, remove it from the sender */ comm->src_proc->comms.remove(comm); } - // SIMIX_comm_unref(comm); } else { xbt_die("Communication synchro %p is in my list but I'm not the sender nor the receiver", synchro); }