Re: [Boost-bugs] [Boost C++ Libraries] #8405: VC++ 2012 compiler warning C4189: '...' : local variable is initialized but not referenced

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 18:51:41


#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 barendgehrels):

 Yes, disabling might be an option. However, we get the chance then that
 gcc or clang still complain (did not check).

 Another option is adding boost::ignore_unused_variable_warning(n); that is
 quite easy to do ;-) This is valid for all compilers, and is not taking
 runtime. I did that earlier for some strategies, so it can also be done
 for fp_strategy.

 This might be done for most (but probably not all) your reported warning
 problems.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/8405#comment:4>
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