[ovs-dev] [PATCH 0/5] Fix unaligned pointer values reported by clang 4.0.

Joe Stringer joe at ovn.org
Tue May 23 23:02:11 UTC 2017


Clang 4.0 has added some new warnings around taking the address of packed
members of structures which may result in unaligned pointer values. This series
addresses the resulting compilation failures (reported via -Werror).

Joe Stringer (5):
  odp-execute: Fix unaligned eth_addr access.
  ofproto-dpif: Fix unaligned eth_addr access.
  test-hash: Don't check bit 2048.
  test-hash: Fix unaligned memory access.
  test-hash: Reuse structs/functions in 256B check.

 lib/odp-execute.c      | 19 +++++++++++--
 ofproto/ofproto-dpif.c | 12 +++++---
 tests/test-hash.c      | 74 ++++++++++++++++++++++++++++++--------------------
 3 files changed, 70 insertions(+), 35 deletions(-)

-- 
2.12.2



More information about the dev mailing list