From bdd2a210b8d0a75ec992299a7af767a0cfe1e0ff Mon Sep 17 00:00:00 2001 From: "Aaron W. LaFramboise" Date: Thu, 10 Jun 2004 19:54:59 +0000 Subject: [PATCH] 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 --- libstdc++-v3/ChangeLog | 4 ++++ libstdc++-v3/include/bits/istream.tcc | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index e704fa7..703fef9 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 6417e95..c8861b6 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; -- 2.7.4