Subject: Re: [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-06 15:26:08
#8405: VC++ 2012 compiler warning C4189: '...' : local variable is initialized but
not referenced
------------------------------------------------------+---------------------
Reporter: Volker Schöch <vschoech@â¦> | Owner: barendgehrels
Type: Support Requests | Status: new
Milestone: To Be Determined | Component: geometry
Version: Boost 1.52.0 | Severity: Cosmetic
Resolution: | Keywords: VC++ 2012, warning, C4189, local variable is initialized but not referenced
------------------------------------------------------+---------------------
Comment (by Volker Schöch <vschoech@â¦>):
Thank you for looking into this. I have no issue with the code as it is.
However, I do have an issue with the warning being triggered. If you know
that the warning is triggered even though the code is fine, why not
locally suppress the warning with `#pragma warning(disable:4189)`?
Compiling with /W3 is not an option for me; I will continue to suppress
this warning specifically for boost::geometry. That's not a practical
problem, I just think suppressing it locally in your code, with an
appropriate comment, would be a better solution.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/8405#comment:3> 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