Subject: [Boost-bugs] [Boost C++ Libraries] #8405: VC++ 2012 compiler warning C4189: '...' : local variable is initialized but not referenced
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-04-05 15:02:22
#8405: VC++ 2012 compiler warning C4189: '...' : local variable is initialized but
not referenced
-----------------------------------------------------------------------------------------+
Reporter: Volker Schöch <vschoech@â¦> | Owner: barendgehrels
Type: Bugs | Status: new
Milestone: To Be Determined | Component: geometry
Version: Boost 1.52.0 | Severity: Problem
Keywords: VC++ 2012, warning, C4189, local variable is initialized but not referenced |
-----------------------------------------------------------------------------------------+
I'm using Microsoft Visual Studio 2012 to compile boost 1.52.0. I use
compiler flag /W4. The following warnings (which we declared errors for
our project) 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 referenced
int 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?
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/8405> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:12 UTC