[LinuxBIOS] [PATCH] Fix various compiler warnings and potential bugs
Segher Boessenkool
segher at kernel.crashing.org
Fri Feb 2 07:33:03 CET 2007
>> Well certainly as long as GCC keeps spitting warnings about
>> this, it almost never gets these warnings wrong.
>
> I don't know whether it is spitting warnings about aliasing,
> but we're violating the aliasing rules described in the gcc
> man page.
Described in the C standard, even. There's a GCC option to
make it complain about suspicious pointer casting; I believe
it's called -Wstrict-aliasing? It helps a lot, we should
have it enabled :-)
Segher
More information about the coreboot
mailing list