Boost logo

Geometry :

Subject: [geometry] "C4189: '...' : local variable is initialized but not referenced" compiler warning in geometry 1.52.0
From: Volker Schöch (vschoech_at_[hidden])
Date: 2013-03-28 10:01:05


Hi,
I'm using VS 2012 to compile boost 1.52.0. The following warnings occur in geometry (regardless whether I'm compiling for x64 or x86).

\boost_1_52_0\boost\geometry\algorithms\detail\overlay\get_turns.hpp(140): error C4189: 'n' : local variable is initialized but not referencedint const n = int(section.range_count);

\boost_1_52_0\boost\geometry\strategies\cartesian\distance_projected_point.hpp(161): error C4189: 'fp_strategy' : local variable is initialized but not referenced
fp_strategy_type fp_strategy
            = strategy::distance::services::get_similar
                <
                    Strategy, Point, fp_point_type
>::apply(strategy);

Maybe it's possible to eliminate these warnings for the next boost version?
Thanks!
   Volker

--
Volker Schöch | vschoech_at_[hidden]
Senior Software Engineer
think-cell Software GmbH | Chausseestr. 8/E | 10115 Berlin | Germany
http://www.think-cell.com | phone +49 30 666473-10 | US phone +1 800 891 8091
Amtsgericht Berlin-Charlottenburg, HRB 85229 | European Union VAT Id DE813474306
Directors: Dr. Markus Hannebauer, Dr. Arno Schoedl

Geometry list run by mateusz at loskot.net