mirror of
https://github.com/boostorg/geometry.git
synced 2026-02-11 11:52:11 +00:00
Silence clang warnings by adding initialization
[SVN r70059]
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user