|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r70059 - trunk/boost/geometry/geometries/concepts
From: barend.gehrels_at_[hidden]
Date: 2011-03-17 09:15:12
Author: barendgehrels
Date: 2011-03-17 09:15:10 EDT (Thu, 17 Mar 2011)
New Revision: 70059
URL: http://svn.boost.org/trac/boost/changeset/70059
Log:
Silence clang warnings by adding initialization
Text files modified:
trunk/boost/geometry/geometries/concepts/box_concept.hpp | 2 +-
trunk/boost/geometry/geometries/concepts/linestring_concept.hpp | 4 ++--
trunk/boost/geometry/geometries/concepts/point_concept.hpp | 2 +-
trunk/boost/geometry/geometries/concepts/polygon_concept.hpp | 4 ++--
trunk/boost/geometry/geometries/concepts/ring_concept.hpp | 4 ++--
trunk/boost/geometry/geometries/concepts/segment_concept.hpp | 2 +-
6 files changed, 9 insertions(+), 9 deletions(-)
Modified: trunk/boost/geometry/geometries/concepts/box_concept.hpp
==============================================================================
--- trunk/boost/geometry/geometries/concepts/box_concept.hpp (original)
+++ trunk/boost/geometry/geometries/concepts/box_concept.hpp 2011-03-17 09:15:10 EDT (Thu, 17 Mar 2011)
@@ -56,7 +56,7 @@
{
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();
}
Modified: trunk/boost/geometry/geometries/concepts/linestring_concept.hpp
==============================================================================
--- trunk/boost/geometry/geometries/concepts/linestring_concept.hpp (original)
+++ trunk/boost/geometry/geometries/concepts/linestring_concept.hpp 2011-03-17 09:15:10 EDT (Thu, 17 Mar 2011)
@@ -78,10 +78,10 @@
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
Modified: trunk/boost/geometry/geometries/concepts/point_concept.hpp
==============================================================================
--- trunk/boost/geometry/geometries/concepts/point_concept.hpp (original)
+++ trunk/boost/geometry/geometries/concepts/point_concept.hpp 2011-03-17 09:15:10 EDT (Thu, 17 Mar 2011)
@@ -93,7 +93,7 @@
{
static void apply()
{
- P* p;
+ P* p = 0;
geometry::set<Dimension>(*p, geometry::get<Dimension>(*p));
dimension_checker<P, Dimension+1, DimensionCount>::apply();
}
Modified: trunk/boost/geometry/geometries/concepts/polygon_concept.hpp
==============================================================================
--- trunk/boost/geometry/geometries/concepts/polygon_concept.hpp (original)
+++ trunk/boost/geometry/geometries/concepts/polygon_concept.hpp 2011-03-17 09:15:10 EDT (Thu, 17 Mar 2011)
@@ -52,7 +52,7 @@
{
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 @@
{
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);
Modified: trunk/boost/geometry/geometries/concepts/ring_concept.hpp
==============================================================================
--- trunk/boost/geometry/geometries/concepts/ring_concept.hpp (original)
+++ trunk/boost/geometry/geometries/concepts/ring_concept.hpp 2011-03-17 09:15:10 EDT (Thu, 17 Mar 2011)
@@ -54,10 +54,10 @@
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
Modified: trunk/boost/geometry/geometries/concepts/segment_concept.hpp
==============================================================================
--- trunk/boost/geometry/geometries/concepts/segment_concept.hpp (original)
+++ trunk/boost/geometry/geometries/concepts/segment_concept.hpp 2011-03-17 09:15:10 EDT (Thu, 17 Mar 2011)
@@ -54,7 +54,7 @@
{
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();
}
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk