diff --git a/include/boost/geometry/geometries/concepts/box_concept.hpp b/include/boost/geometry/geometries/concepts/box_concept.hpp index 34d0fdd48..d3a96abbd 100644 --- a/include/boost/geometry/geometries/concepts/box_concept.hpp +++ b/include/boost/geometry/geometries/concepts/box_concept.hpp @@ -56,7 +56,7 @@ class Box { static void apply() { - Geometry* b; + Geometry* b = 0; geometry::set(*b, geometry::get(*b)); dimension_checker::apply(); } diff --git a/include/boost/geometry/geometries/concepts/linestring_concept.hpp b/include/boost/geometry/geometries/concepts/linestring_concept.hpp index 5ecaf9ce5..f8aa95239 100644 --- a/include/boost/geometry/geometries/concepts/linestring_concept.hpp +++ b/include/boost/geometry/geometries/concepts/linestring_concept.hpp @@ -78,10 +78,10 @@ public : BOOST_CONCEPT_USAGE(Linestring) { - Geometry* ls; + Geometry* ls = 0; traits::clear::apply(*ls); traits::resize::apply(*ls, 0); - point_type* point; + point_type* point = 0; traits::push_back::apply(*ls, *point); } #endif diff --git a/include/boost/geometry/geometries/concepts/point_concept.hpp b/include/boost/geometry/geometries/concepts/point_concept.hpp index 60f46e1e8..b31f3dd98 100644 --- a/include/boost/geometry/geometries/concepts/point_concept.hpp +++ b/include/boost/geometry/geometries/concepts/point_concept.hpp @@ -93,7 +93,7 @@ class Point { static void apply() { - P* p; + P* p = 0; geometry::set(*p, geometry::get(*p)); dimension_checker::apply(); } diff --git a/include/boost/geometry/geometries/concepts/polygon_concept.hpp b/include/boost/geometry/geometries/concepts/polygon_concept.hpp index 5c35d82db..757933cd2 100644 --- a/include/boost/geometry/geometries/concepts/polygon_concept.hpp +++ b/include/boost/geometry/geometries/concepts/polygon_concept.hpp @@ -52,7 +52,7 @@ class Polygon { static inline void apply() { - polygon_type* poly; + polygon_type* poly = 0; polygon_type const* cpoly = poly; ring_mutable_type e = traits::exterior_ring::get(*poly); @@ -105,7 +105,7 @@ class ConstPolygon { static inline void apply() { - const_polygon_type const* cpoly; + const_polygon_type const* cpoly = 0; ring_const_type ce = traits::exterior_ring::get(*cpoly); interior_const_type ci = traits::interior_rings::get(*cpoly); diff --git a/include/boost/geometry/geometries/concepts/ring_concept.hpp b/include/boost/geometry/geometries/concepts/ring_concept.hpp index d683e5e97..61f34747c 100644 --- a/include/boost/geometry/geometries/concepts/ring_concept.hpp +++ b/include/boost/geometry/geometries/concepts/ring_concept.hpp @@ -54,10 +54,10 @@ public : BOOST_CONCEPT_USAGE(Ring) { - Geometry* ring; + Geometry* ring = 0; traits::clear::apply(*ring); traits::resize::apply(*ring, 0); - point_type* point; + point_type* point = 0; traits::push_back::apply(*ring, *point); } #endif diff --git a/include/boost/geometry/geometries/concepts/segment_concept.hpp b/include/boost/geometry/geometries/concepts/segment_concept.hpp index 9c70aebed..eb09908e8 100644 --- a/include/boost/geometry/geometries/concepts/segment_concept.hpp +++ b/include/boost/geometry/geometries/concepts/segment_concept.hpp @@ -54,7 +54,7 @@ class Segment { static void apply() { - Geometry* s; + Geometry* s = 0; geometry::set(*s, geometry::get(*s)); dimension_checker::apply(); }