istream.tcc (istream::ignore): Fix for -Wuninitialized.
authorAaron W. LaFramboise <aaronraolete36@aaronwl.com>
Thu, 10 Jun 2004 19:54:59 +0000 (19:54 +0000)
committerBenjamin Kosnik <bkoz@gcc.gnu.org>
Thu, 10 Jun 2004 19:54:59 +0000 (19:54 +0000)
2004-06-10  Aaron W. LaFramboise  <aaronraolete36@aaronwl.com>

* include/bits/istream.tcc (istream::ignore): Fix for -Wuninitialized.

From-SVN: r82939

libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/istream.tcc

index e704fa7c0bbba5bbc6f2a004292bb2bbd564da93..703fef9b3694c6ec5501668236e5c64a12061d74 100644 (file)
@@ -1,3 +1,7 @@
+2004-06-10  Aaron W. LaFramboise  <aaronraolete36@aaronwl.com>
+
+       * include/bits/istream.tcc (istream::ignore): Fix for -Wuninitialized.
+
 2004-06-10  Jan van Dijk  <jan@etpmod.phys.tue.nl>
 
        * include/std/std_complex.h (sin(const complex<_Tp>& __z)): Make
index 6417e951f03a0e0fee5609749103cddc4550275d..c8861b651ef7627ddfce15d6a5f150df67f15fd2 100644 (file)
@@ -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<streamsize>::max())
                --__n;