From: Aaron W. LaFramboise Date: Thu, 10 Jun 2004 19:54:59 +0000 (+0000) Subject: istream.tcc (istream::ignore): Fix for -Wuninitialized. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bdd2a210b8d0a75ec992299a7af767a0cfe1e0ff;p=gcc.git istream.tcc (istream::ignore): Fix for -Wuninitialized. 2004-06-10 Aaron W. LaFramboise * include/bits/istream.tcc (istream::ignore): Fix for -Wuninitialized. From-SVN: r82939 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index e704fa7c0bb..703fef9b369 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,7 @@ +2004-06-10 Aaron W. LaFramboise + + * include/bits/istream.tcc (istream::ignore): Fix for -Wuninitialized. + 2004-06-10 Jan van Dijk * include/std/std_complex.h (sin(const complex<_Tp>& __z)): Make diff --git a/libstdc++-v3/include/bits/istream.tcc b/libstdc++-v3/include/bits/istream.tcc index 6417e951f03..c8861b651ef 100644 --- a/libstdc++-v3/include/bits/istream.tcc +++ b/libstdc++-v3/include/bits/istream.tcc @@ -655,7 +655,7 @@ namespace std { const int_type __eof = traits_type::eof(); __streambuf_type* __sb = this->rdbuf(); - int_type __c; + int_type __c = __eof; if (__n != numeric_limits::max()) --__n;