Re: [Boost-bugs] [Boost C++ Libraries] #4946: Uninitialized variable warning in lexical_cast.hpp

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #4946: Uninitialized variable warning in lexical_cast.hpp
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-07-22 09:00:37


#4946: Uninitialized variable warning in lexical_cast.hpp
---------------------------------------------+--------------------------
  Reporter: Rich McKeever <richmckeever@…> | Owner: apolukhin
      Type: Bugs | Status: reopened
 Milestone: To Be Determined | Component: lexical_cast
   Version: Boost 1.55.0 | Severity: Problem
Resolution: | Keywords:
---------------------------------------------+--------------------------

Comment (by anonymous):

 I'm also seeing this issue with gcc 4.8.4 and boost 1.56 but only when -Og
 is used.

 For me the warnings are reported at the point where lexical cast is used
 rather than in the boost header, so our usual warning suppressions don't
 do anything. I've tried adding the suggested #pragma GCC diagnostic push
 stuff around our include of boost/lexical_cast.hpp but it also has no
 effect.

 The only way I've found to get around it is to disable -Wuninitialized in
 debug builds.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4946#comment:10>
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:20 UTC