boostorg / lexical_cast

General literal text conversions, such as an int represented as a string, or vice versa
https://boost.org/libs/lexical_cast
34 stars 58 forks source link

Eliminate GCC 4.9.2 warning "'result' may be used uninitialized" #12

Closed plopresti closed 9 years ago

plopresti commented 9 years ago

With "-Wall", the current release of GCC complains about the potential use of an uninitialized variable. This problem and fix are essentially identical to https://svn.boost.org/trac/boost/ticket/4946.

apolukhin commented 9 years ago

Thanks for the patch!

apolukhin commented 9 years ago

All the changes must go to the develop branch first. I've reverted this commit and moved the changes to develop: https://github.com/boostorg/lexical_cast/commit/bdc355759e3259209f1107ae21babee6dcf8d80b

plopresti commented 9 years ago

Yeah, I realized that sometime after I created the patch. (My git experience is somewhat limited as of yet.) Sorry about that.

Thanks for accepting.