Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
odp-execute: Fix broken build with Clang as compiler.
Builds of branch-2.7 have been failing on Travis when Clang is used as compiler due to: ../ofproto/ofproto-dpif.c:2057:46: warning: taking address of packed member 'eth_src' of class or structure 'eth_header' may result in an unaligned pointer value [-Waddress-of-packed-member] netdev_get_etheraddr(ofport->up.netdev, ð->eth_src); ^~~~~~~~~~~~ ../ofproto/ofproto-dpif.c:2082:50: warning: taking address of packed member 'eth_src' of class or structure 'eth_header' may result in an unaligned pointer value [-Waddress-of-packed-member] netdev_get_etheraddr(ofport->up.netdev, ð->eth_src); ^~~~~~~~~~~~ On master these don't come up because of commit 1620b7e ("packets: Remove unnecessary "packed" annotations."), which removed the packed annotation that causes the warning. This commit applies enough of that commit to make the build pass. Signed-off-by: Ben Pfaff <blp@ovn.org>
- Loading branch information