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.tccbasic_istream::ignore
- From: Benjamin Kosnik <bkoz at redhat dot com>
- To: libstdc++ at gcc dot gnu dot org
- Date: Thu, 10 Jun 2004 12:19:48 -0500
- Subject: Re: Possibly uninitialized variable in include/bits/istream.tccbasic_istream::ignore
- Organization: Red Hat / Chicago
- References: <40C7B212.6050003@aaronwl.com>
>I've been applying the patch below to fix an uninitialized variable
>warning causing mainline bootstrap to fail. I have not analyzed the
>logic, so I have no idea what the correct fix is. Perhaps the while
>loops needs to be changed to a do-while loop?
I cannot reproduce this.
make WERROR="-Werror" WARN_FLAGS="-Wuninitialized" istream-inst.lo
Doesn't show any issue.
FWIW, I think the correct fix would be
int_type __c = __eof.
-benjamin