Silence clang warnings by adding initialization

[SVN r70059]
This commit is contained in:
Barend Gehrels
2011-03-17 13:15:10 +00:00
parent c800f15ff0
commit 2b03e95bc1
6 changed files with 9 additions and 9 deletions

View File

@@ -56,7 +56,7 @@ class Box
{
static void apply()
{
Geometry* b;
Geometry* b = 0;
geometry::set<Index, Dimension>(*b, geometry::get<Index, Dimension>(*b));
dimension_checker<Index, Dimension + 1, DimensionCount>::apply();
}

View File

@@ -78,10 +78,10 @@ public :
BOOST_CONCEPT_USAGE(Linestring)
{
Geometry* ls;
Geometry* ls = 0;
traits::clear<Geometry>::apply(*ls);
traits::resize<Geometry>::apply(*ls, 0);
point_type* point;
point_type* point = 0;
traits::push_back<Geometry>::apply(*ls, *point);
}
#endif

View File

@@ -93,7 +93,7 @@ class Point
{
static void apply()
{
P* p;
P* p = 0;
geometry::set<Dimension>(*p, geometry::get<Dimension>(*p));
dimension_checker<P, Dimension+1, DimensionCount>::apply();
}

View File

@@ -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<PolygonType>::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<const_polygon_type>::get(*cpoly);
interior_const_type ci = traits::interior_rings<const_polygon_type>::get(*cpoly);

View File

@@ -54,10 +54,10 @@ public :
BOOST_CONCEPT_USAGE(Ring)
{
Geometry* ring;
Geometry* ring = 0;
traits::clear<Geometry>::apply(*ring);
traits::resize<Geometry>::apply(*ring, 0);
point_type* point;
point_type* point = 0;
traits::push_back<Geometry>::apply(*ring, *point);
}
#endif

View File

@@ -54,7 +54,7 @@ class Segment
{
static void apply()
{
Geometry* s;
Geometry* s = 0;
geometry::set<Index, Dimension>(*s, geometry::get<Index, Dimension>(*s));
dimension_checker<Index, Dimension + 1, DimensionCount>::apply();
}