On May 8, 2005, at 4:17 PM, Harald Dunkel wrote:
Falk Hueffner wrote:
It doesn't know that. The warning is for the *creation* of the type-punned pointer, which is still perfectly fine. Gcc is too stupid to notice whether you actually dereference it.
Yup. There are billions of this constructs in everbodies and his moms source files. By now (< 4.0.0) this did not hurt.
That is not true, this has been an issue for people since 3.0.x (and also
for 2.95, not 2.95.1 though). Just we did not do as much optimization as
before as we do now.
-- Pinski