Follow-up Comment #2, bug #18147 (project freeciv):

> an insufficiently clever compiler might think that it's not. (I
> think it is, but it requires some inferences a compiler mightn't
> make.)

I've seen that with certain gcc versions, but have not reacted to it since
'hp' really is always initialized and newer gcc versions know that.
One gets this warning only if gcc is new enough to somehow determine if 'hp'
can be uninitialized, but not new enough to have advanced enough heuristics to
see that it can not.


Reply to this item at:


  Message sent via/by Gna!

Freeciv-dev mailing list

Reply via email to