Ignore variables as suggested on the list by Vishnu, to avoid clang warnings

[SVN r76477]
This commit is contained in:
Barend Gehrels
2012-01-13 23:59:50 +00:00
parent a90255feac
commit 3de7d51235
4 changed files with 19 additions and 19 deletions

View File

@@ -44,11 +44,11 @@ class AreaStrategy
{
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

View File

@@ -89,9 +89,9 @@ private :
>::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 @@ private :
);
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);

View File

@@ -79,9 +79,9 @@ private :
(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

View File

@@ -152,9 +152,9 @@ class WithinStrategyPointBox
// 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 @@ class WithinStrategyBoxBox
// 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);