Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r76515 - trunk/libs/geometry/test/algorithms
From: barend.gehrels_at_[hidden]
Date: 2012-01-15 08:30:57


Author: barendgehrels
Date: 2012-01-15 08:30:56 EST (Sun, 15 Jan 2012)
New Revision: 76515
URL: http://svn.boost.org/trac/boost/changeset/76515

Log:
Removed variables accepting return values to avoid warnings in gcc
Text files modified:
   trunk/libs/geometry/test/algorithms/test_area.hpp | 3 +--
   trunk/libs/geometry/test/algorithms/test_distance.hpp | 3 +--
   trunk/libs/geometry/test/algorithms/test_length.hpp | 3 +--
   trunk/libs/geometry/test/algorithms/test_perimeter.hpp | 3 +--
   4 files changed, 4 insertions(+), 8 deletions(-)

Modified: trunk/libs/geometry/test/algorithms/test_area.hpp
==============================================================================
--- trunk/libs/geometry/test/algorithms/test_area.hpp (original)
+++ trunk/libs/geometry/test/algorithms/test_area.hpp 2012-01-15 08:30:56 EST (Sun, 15 Jan 2012)
@@ -71,8 +71,7 @@
 {
     try
     {
- typename bg::default_area_result<Geometry>::type area
- = bg::area(geometry);
+ bg::area(geometry);
     }
     catch(bg::empty_input_exception const& )
     {

Modified: trunk/libs/geometry/test/algorithms/test_distance.hpp
==============================================================================
--- trunk/libs/geometry/test/algorithms/test_distance.hpp (original)
+++ trunk/libs/geometry/test/algorithms/test_distance.hpp 2012-01-15 08:30:56 EST (Sun, 15 Jan 2012)
@@ -145,8 +145,7 @@
 {
     try
     {
- typename bg::default_distance_result<Geometry1>::type distance
- = bg::distance(geometry1, geometry2);
+ bg::distance(geometry1, geometry2);
     }
     catch(bg::empty_input_exception const& )
     {

Modified: trunk/libs/geometry/test/algorithms/test_length.hpp
==============================================================================
--- trunk/libs/geometry/test/algorithms/test_length.hpp (original)
+++ trunk/libs/geometry/test/algorithms/test_length.hpp 2012-01-15 08:30:56 EST (Sun, 15 Jan 2012)
@@ -49,8 +49,7 @@
 {
     try
     {
- typename bg::default_length_result<Geometry>::type length
- = bg::length(geometry);
+ bg::length(geometry);
     }
     catch(bg::empty_input_exception const& )
     {

Modified: trunk/libs/geometry/test/algorithms/test_perimeter.hpp
==============================================================================
--- trunk/libs/geometry/test/algorithms/test_perimeter.hpp (original)
+++ trunk/libs/geometry/test/algorithms/test_perimeter.hpp 2012-01-15 08:30:56 EST (Sun, 15 Jan 2012)
@@ -52,8 +52,7 @@
 {
     try
     {
- typename bg::default_distance_result<Geometry>::type peri
- = bg::perimeter(geometry);
+ bg::perimeter(geometry);
     }
     catch(bg::empty_input_exception const& )
     {


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