Eliminate strict aliasing related warnings.
Signed-off-by: Patrick Georgi <patrick.georgi@secunet.com> Acked-by: Stefan Reinauer <stepan@coreboot.org> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6266 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
committed by
Patrick Georgi
parent
884554c4e3
commit
2601697c6f
@ -74,7 +74,10 @@ static inline struct lb_uint64 pack_lb64(uint64_t value)
|
||||
}
|
||||
|
||||
struct lb_header {
|
||||
uint8_t signature[4]; /* LBIO */
|
||||
union {
|
||||
uint8_t signature[4]; /* LBIO */
|
||||
uint32_t signature32;
|
||||
};
|
||||
uint32_t header_bytes;
|
||||
uint32_t header_checksum;
|
||||
uint32_t table_bytes;
|
||||
|
Reference in New Issue
Block a user