[coreboot] [Patch] remove some warnings

Myles Watson mylesgw at gmail.com
Thu Mar 18 15:26:29 CET 2010


> > This will mean that you've got wrong debug info, of course, but it is
> > what you seem to want. The first file defines a symbol, and the second
> > files says that a symbol is defined somewhere else. The types don't
> > match, but the C compiler doesn't know / care about that.
> Since the type punning issue is about wrong alignment, I think the C
> compiler does not do the right thing in that case, we just trick it
> around the warning.
So it seems like we should make sure the alignment is correct and then trick
it around the warning, right?

What's the best way to make sure that a u8 array is aligned on a four-byte
boundary?

Thanks,
Myles





More information about the coreboot mailing list