[physfs] Re: more warnings
Ryan C. Gordon
icculus at icculus.org
Sat Mar 8 20:58:03 EST 2008
> I've seen this warning before in other projects "dereferencing
> type-punned pointer will break strict-aliasing rules" (wxWidgets
> specifically), but anything I've built seemed to work fine so I
> wouldn't worry about it.
It works fine until it doesn't. It's actually a serious warning, because
99% of the time, the code works right, but the 1% that it fails, it
looks like the compiler generated incorrect code (hey, it warned you!).
Usually my Windows work has been with MSVC, and it is strict about
different things that GCC. I'll look into this.
More information about the physfs