Skip to content

Commit

Permalink
[build] Avoid strict-aliasing warning for gcc 4.3
Browse files Browse the repository at this point in the history
Signed-off-by: Bo Yang <boyang@suse.com>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
  • Loading branch information
yyyeer authored and mcb30 committed Mar 21, 2013
1 parent 1920aa4 commit 11ad0ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/arch/i386/include/bits/byteswap.h
Expand Up @@ -53,8 +53,8 @@ __bswap_variable_64 ( uint64_t x ) {
static inline __attribute__ (( always_inline )) void
__bswap_64s ( uint64_t *x ) {
struct {
uint32_t low;
uint32_t high;
uint32_t __attribute__ (( may_alias )) low;
uint32_t __attribute__ (( may_alias )) high;
} __attribute__ (( may_alias )) *dwords = ( ( void * ) x );
uint32_t discard;

Expand Down

0 comments on commit 11ad0ba

Please sign in to comment.