This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Possibly uninitialized variable in include/bits/istream.tcc basic_istream::ignore
- From: Paolo Carlini <pcarlini at suse dot de>
- To: Benjamin Kosnik <bkoz at redhat dot com>
- Cc: libstdc++ at gcc dot gnu dot org
- Date: Fri, 11 Jun 2004 01:28:22 +0200
- Subject: Re: Possibly uninitialized variable in include/bits/istream.tcc basic_istream::ignore
- References: <40C7B212.6050003@aaronwl.com> <20040610121948.47ce2277.bkoz@redhat.com>
Benjamin Kosnik wrote:
FWIW, I think the correct fix would be
int_type __c = __eof.
Or whatever else: the warning is actually wrong, since entering
the loop _M_gcount == 0 && __n >= 0.
Paolo.