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

Subject: [Boost-bugs] [Boost C++ Libraries] #4946: Uninitialized variable warning in lexical_cast.hpp
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-12-07 19:01:13


#4946: Uninitialized variable warning in lexical_cast.hpp
----------------------------------------------------+-----------------------
 Reporter: Rich McKeever <richmckeever@…> | Owner: nasonov
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: lexical_cast
  Version: Boost 1.44.0 | Severity: Problem
 Keywords: |
----------------------------------------------------+-----------------------
 Target lexical_cast(param_type, CharT*, size_t) [Line 1150] has an
 uninitialized variable called "result" that is immediately read with a
 stream extraction operator. GCC warns about the variable being
 uninitialized. The warning is suppressed for msvc. The attached patch
 suppresses it on GCC 4.3.0 on Mac OS 10.6.4.

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