|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r76477 - trunk/boost/geometry/strategies/concepts
From: barend.gehrels_at_[hidden]
Date: 2012-01-13 18:59:50
Author: barendgehrels
Date: 2012-01-13 18:59:50 EST (Fri, 13 Jan 2012)
New Revision: 76477
URL: http://svn.boost.org/trac/boost/changeset/76477
Log:
Ignore variables as suggested on the list by Vishnu, to avoid clang warnings
Text files modified:
trunk/boost/geometry/strategies/concepts/area_concept.hpp | 6 +++---
trunk/boost/geometry/strategies/concepts/distance_concept.hpp | 14 +++++++-------
trunk/boost/geometry/strategies/concepts/simplify_concept.hpp | 6 +++---
trunk/boost/geometry/strategies/concepts/within_concept.hpp | 12 ++++++------
4 files changed, 19 insertions(+), 19 deletions(-)
Modified: trunk/boost/geometry/strategies/concepts/area_concept.hpp
==============================================================================
--- trunk/boost/geometry/strategies/concepts/area_concept.hpp (original)
+++ trunk/boost/geometry/strategies/concepts/area_concept.hpp 2012-01-13 18:59:50 EST (Fri, 13 Jan 2012)
@@ -44,11 +44,11 @@
{
static void apply()
{
- Strategy const* str;
- state_type *st;
+ Strategy const* str = 0;
+ state_type *st = 0;
// 4) must implement a method apply with the following signature
- spoint_type const* sp;
+ spoint_type const* sp = 0;
str->apply(*sp, *sp, *st);
// 5) must implement a static method result with the following signature
Modified: trunk/boost/geometry/strategies/concepts/distance_concept.hpp
==============================================================================
--- trunk/boost/geometry/strategies/concepts/distance_concept.hpp (original)
+++ trunk/boost/geometry/strategies/concepts/distance_concept.hpp 2012-01-13 18:59:50 EST (Fri, 13 Jan 2012)
@@ -89,9 +89,9 @@
>::type tag;
// 7) must implement apply with arguments
- Strategy* str;
- ptype1 *p1;
- ptype2 *p2;
+ Strategy* str = 0;
+ ptype1 *p1 = 0;
+ ptype2 *p2 = 0;
rtype r = str->apply(*p1, *p2);
// 8) must define (meta)struct "get_similar" with apply
@@ -179,10 +179,10 @@
);
- Strategy *str;
- ptype *p;
- sptype *sp1;
- sptype *sp2;
+ Strategy *str = 0;
+ ptype *p = 0;
+ sptype *sp1 = 0;
+ sptype *sp2 = 0;
rtype r = str->apply(*p, *sp1, *sp2);
Modified: trunk/boost/geometry/strategies/concepts/simplify_concept.hpp
==============================================================================
--- trunk/boost/geometry/strategies/concepts/simplify_concept.hpp (original)
+++ trunk/boost/geometry/strategies/concepts/simplify_concept.hpp 2012-01-13 18:59:50 EST (Fri, 13 Jan 2012)
@@ -79,9 +79,9 @@
(concept::PointSegmentDistanceStrategy<ds_type>)
);
- Strategy *str;
- std::vector<point_type> const* v1;
- std::vector<point_type> * v2;
+ Strategy *str = 0;
+ std::vector<point_type> const* v1 = 0;
+ std::vector<point_type> * v2 = 0;
// 2) must implement method apply with arguments
// - Range
Modified: trunk/boost/geometry/strategies/concepts/within_concept.hpp
==============================================================================
--- trunk/boost/geometry/strategies/concepts/within_concept.hpp (original)
+++ trunk/boost/geometry/strategies/concepts/within_concept.hpp 2012-01-13 18:59:50 EST (Fri, 13 Jan 2012)
@@ -152,9 +152,9 @@
// CHECK: calling method apply
- Strategy const* str;
- point_type const* p;
- box_type const* bx;
+ Strategy const* str = 0;
+ point_type const* p = 0;
+ box_type const* bx = 0;
bool b = str->apply(*p, *bx);
@@ -216,9 +216,9 @@
// CHECK: calling method apply
- Strategy const* str;
- box_type1 const* b1;
- box_type2 const* b2;
+ Strategy const* str = 0;
+ box_type1 const* b1 = 0;
+ box_type2 const* b2 = 0;
bool b = str->apply(*b1, *b2);
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