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;