This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Possibly uninitialized variable in include/bits/istream.tccbasic_istream::ignore


>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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]