From: Arnaud Giersch Date: Tue, 13 Oct 2020 14:34:33 +0000 (+0200) Subject: Delete unused ctor. X-Git-Tag: v3.26~312 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/b3d4227155db4390d75f001f7e2f5200884f5dd3 Delete unused ctor. If it were used, private variables may be uninitialized. --- diff --git a/src/surf/network_wifi.hpp b/src/surf/network_wifi.hpp index 5f06aa40de..51f566b486 100644 --- a/src/surf/network_wifi.hpp +++ b/src/surf/network_wifi.hpp @@ -63,6 +63,7 @@ class NetworkWifiAction : public NetworkCm02Action { NetworkWifiLink* dst_wifi_link_; public: + NetworkWifiAction() = delete; NetworkWifiAction(Model* model, s4u::Host& src, s4u::Host& dst, double cost, bool failed, NetworkWifiLink* src_wifi_link, NetworkWifiLink* dst_wifi_link) : NetworkCm02Action(model, src, dst, cost, failed) diff --git a/src/surf/ptask_L07.hpp b/src/surf/ptask_L07.hpp index 19bc8a0c4b..263cb8e354 100644 --- a/src/surf/ptask_L07.hpp +++ b/src/surf/ptask_L07.hpp @@ -129,6 +129,7 @@ class L07Action : public kernel::resource::CpuAction { friend Action* NetworkL07Model::communicate(s4u::Host* src, s4u::Host* dst, double size, double rate); public: + L07Action() = delete; L07Action(kernel::resource::Model* model, const std::vector& host_list, const double* flops_amount, const double* bytes_amount, double rate); L07Action(const L07Action&) = delete;