diff options
author | Patrick Georgi <patrick.georgi@secunet.com> | 2011-01-18 12:12:47 +0000 |
---|---|---|
committer | Patrick Georgi <patrick.georgi@coresystems.de> | 2011-01-18 12:12:47 +0000 |
commit | 2601697c6f70e0200f6f115d6e6e5e5d67fe6101 (patch) | |
tree | ad41b13b668d635993cede365f802eedaa0366d7 /util/nvramtool/coreboot_tables.h | |
parent | 884554c4e306e2b01941361c7166ca546d1052a4 (diff) |
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
Diffstat (limited to 'util/nvramtool/coreboot_tables.h')
-rw-r--r-- | util/nvramtool/coreboot_tables.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/util/nvramtool/coreboot_tables.h b/util/nvramtool/coreboot_tables.h index 08f0be63fa..22570ac1f6 100644 --- a/util/nvramtool/coreboot_tables.h +++ b/util/nvramtool/coreboot_tables.h @@ -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; |