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.tcc basic_istream::ignore


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.


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