aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/restricted/boost/graph/patches/clang-analyzer-optin.cplusplus.UninitializedObject.patch
blob: ab6f4fad6d5278f930c818bb174e642cba3e6add (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- contrib/restricted/boost/graph/include/boost/graph/detail/edge.hpp  (index)
+++ contrib/restricted/boost/graph/include/boost/graph/detail/edge.hpp  (working tree)
@@ -23,7 +23,7 @@ namespace detail
 
     template < typename Directed, typename Vertex > struct edge_base
     {
-        inline edge_base() {}
+        inline edge_base() : m_source(), m_target() {}
         inline edge_base(Vertex s, Vertex d) : m_source(s), m_target(d) {}
         Vertex m_source;
         Vertex m_target;
@@ -38,7 +38,7 @@ namespace detail
     public:
         typedef void property_type;
 
-        inline edge_desc_impl() : m_eproperty(0) {}
+        inline edge_desc_impl() : Base(), m_eproperty(0) {}
 
         inline edge_desc_impl(Vertex s, Vertex d, const property_type* eplug)
         : Base(s, d), m_eproperty(const_cast< property_type* >(eplug))