summaryrefslogtreecommitdiff
path: root/config/common_bsdapp
diff options
context:
space:
mode:
authorCyril Chemparathy <cchemparathy@ezchip.com>2015-06-22 11:34:18 -0700
committerThomas Monjalon <thomas.monjalon@6wind.com>2015-06-24 12:00:41 +0200
commit0052d53df4a407627d58a908bfe348ba5c44d462 (patch)
tree5c00d92b8a8920305951dbc368079d21834c2051 /config/common_bsdapp
parent2f935c125a0935ecf86a376bcc1182834c08fe96 (diff)
downloaddpdk-0052d53df4a407627d58a908bfe348ba5c44d462.zip
dpdk-0052d53df4a407627d58a908bfe348ba5c44d462.tar.gz
dpdk-0052d53df4a407627d58a908bfe348ba5c44d462.tar.xz
hash: silence warning on pointer arithmetic
Since sig_tbl_bucket_size and key_tbl_key_size are explicitly aligned at initialization, offset dereferences in the hash table code cannot possibly be unaligned. However, the compiler is unaware of this fact and complains on -Wcast-align. This patch modifies the code to use RTE_PTR_ADD(), thereby silencing the compiler by casting through (void *). Signed-off-by: Cyril Chemparathy <cchemparathy@ezchip.com> Acked-by: Olivier Matz <olivier.matz@6wind.com>
Diffstat (limited to 'config/common_bsdapp')
0 files changed, 0 insertions, 0 deletions