From: Arnaud Giersch Date: Thu, 26 Nov 2020 11:34:42 +0000 (+0100) Subject: Set default values. X-Git-Tag: v3.26~92 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/d0d09bbae3244f31368bf69877f5fc511b61be46 Set default values. --- diff --git a/include/simgrid/plugins/file_system.h b/include/simgrid/plugins/file_system.h index de471b4586..835f63e224 100644 --- a/include/simgrid/plugins/file_system.h +++ b/include/simgrid/plugins/file_system.h @@ -100,7 +100,7 @@ namespace s4u { * For now, you cannot change the mountpoints programmatically, and must declare them from your platform file. */ class XBT_PUBLIC File : public xbt::Extendable { - sg_size_t size_; + sg_size_t size_ = 0; std::string path_; std::string fullpath_; sg_size_t current_position_ = SEEK_SET; diff --git a/src/surf/xml/platf_private.hpp b/src/surf/xml/platf_private.hpp index 75c9c1717c..abcc2fbe7f 100644 --- a/src/surf/xml/platf_private.hpp +++ b/src/surf/xml/platf_private.hpp @@ -102,12 +102,12 @@ public: double loopback_bw = 0; double loopback_lat = 0; double limiter_link = 0; - ClusterTopology topology; + ClusterTopology topology = ClusterTopology::FLAT; std::string topo_parameters; - std::unordered_map* properties; + std::unordered_map* properties = nullptr; std::string router_id; - simgrid::s4u::Link::SharingPolicy sharing_policy; - simgrid::s4u::Link::SharingPolicy bb_sharing_policy; + simgrid::s4u::Link::SharingPolicy sharing_policy = simgrid::s4u::Link::SharingPolicy::SPLITDUPLEX; + simgrid::s4u::Link::SharingPolicy bb_sharing_policy = simgrid::s4u::Link::SharingPolicy::SHARED; }; class CabinetCreationArgs {