From 2245a797b2b91671a3372ad501317b0550fed645 Mon Sep 17 00:00:00 2001 From: Frederic Suter Date: Fri, 12 Jan 2018 09:19:35 +0100 Subject: [PATCH] please Sonar --- examples/s4u/dht-kademlia/message.hpp | 3 +-- include/simgrid/s4u/Host.hpp | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/examples/s4u/dht-kademlia/message.hpp b/examples/s4u/dht-kademlia/message.hpp index 910be6aafa..fc5b79f6a8 100644 --- a/examples/s4u/dht-kademlia/message.hpp +++ b/examples/s4u/dht-kademlia/message.hpp @@ -6,11 +6,10 @@ #ifndef _KADEMLIA_TASK_HPP_ #define _KADEMLIA_TASK_HPP_ -#include "answer.hpp" +#include "s4u-dht-kademlia.hpp" #include "simgrid/s4u.hpp" namespace kademlia { -class Answer; class Message { public: diff --git a/include/simgrid/s4u/Host.hpp b/include/simgrid/s4u/Host.hpp index a959c5cb89..986744b8a4 100644 --- a/include/simgrid/s4u/Host.hpp +++ b/include/simgrid/s4u/Host.hpp @@ -51,7 +51,7 @@ private: bool currentlyDestroying_ = false; public: - void destroy(); + virtual void destroy(); // No copy/move Host(Host const&) = delete; Host& operator=(Host const&) = delete; -- 2.20.1