Re: [ovs-dev] [PATCH] test-hash: Fix unaligned pointer value error.

2017-06-07 Thread Joe Stringer
On 6 June 2017 at 16:13, Ben Pfaff wrote: > On Fri, May 26, 2017 at 02:11:31PM -0700, Joe Stringer wrote: >> Clang 4.0 complains: >> >> ../tests/test-hash.c:160:16: error: taking address of packed member 'b' of >> class or structure 'offset_ovs_u128' may result in an unaligned pointer value >>

Re: [ovs-dev] [PATCH] test-hash: Fix unaligned pointer value error.

2017-06-06 Thread Ben Pfaff
On Fri, May 26, 2017 at 02:11:31PM -0700, Joe Stringer wrote: > Clang 4.0 complains: > > ../tests/test-hash.c:160:16: error: taking address of packed member 'b' of > class or structure 'offset_ovs_u128' may result in an unaligned pointer value > [-Werror,-Waddress-of-packed-member] >

[ovs-dev] [PATCH] test-hash: Fix unaligned pointer value error.

2017-05-26 Thread Joe Stringer
Clang 4.0 complains: ../tests/test-hash.c:160:16: error: taking address of packed member 'b' of class or structure 'offset_ovs_u128' may result in an unaligned pointer value [-Werror,-Waddress-of-packed-member] in0 = &in0_data.b; Set the bit in the aligned u128 first then copy the c