mirror of
https://github.com/xcat2/xNBA.git
synced 2024-11-26 19:29:04 +00:00
[build] Avoid strict-aliasing warning for gcc 4.3
Signed-off-by: Bo Yang <boyang@suse.com> Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
parent
1920aa4376
commit
11ad0bafbf
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user