|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r76478 - trunk/boost/geometry/strategies/concepts
From: barend.gehrels_at_[hidden]
Date: 2012-01-13 19:04:20
Author: barendgehrels
Date: 2012-01-13 19:04:19 EST (Fri, 13 Jan 2012)
New Revision: 76478
URL: http://svn.boost.org/trac/boost/changeset/76478
Log:
Ignore variables as suggested on the list by Vishnu, to avoid clang warnings (part two)
Text files modified:
trunk/boost/geometry/strategies/concepts/centroid_concept.hpp | 8 ++++----
trunk/boost/geometry/strategies/concepts/within_concept.hpp | 8 ++++----
2 files changed, 8 insertions(+), 8 deletions(-)
Modified: trunk/boost/geometry/strategies/concepts/centroid_concept.hpp
==============================================================================
--- trunk/boost/geometry/strategies/concepts/centroid_concept.hpp (original)
+++ trunk/boost/geometry/strategies/concepts/centroid_concept.hpp 2012-01-13 19:04:19 EST (Fri, 13 Jan 2012)
@@ -45,17 +45,17 @@
{
static void apply()
{
- Strategy *str;
- state_type *st;
+ Strategy *str = 0;
+ state_type *st = 0;
// 4) must implement a static method apply,
// getting two segment-points
- spoint_type const* sp;
+ spoint_type const* sp = 0;
str->apply(*sp, *sp, *st);
// 5) must implement a static method result
// getting the centroid
- point_type *c;
+ point_type *c = 0;
bool r = str->result(*st, *c);
boost::ignore_unused_variable_warning(str);
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 19:04:19 EST (Fri, 13 Jan 2012)
@@ -85,10 +85,10 @@
// CHECK: calling method apply and result
- Strategy const* str;
- state_type* st;
- point_type const* p;
- segment_point_type const* sp;
+ Strategy const* str = 0;
+ state_type* st = 0;
+ point_type const* p = 0;
+ segment_point_type const* sp = 0;
bool b = str->apply(*p, *sp, *sp, *st);
int r = str->result(*st);
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