[dpdk-dev] [BUG] cuckoo_hash build failure with gcc-8
Stephen Hemminger
stephen at networkplumber.org
Thu Mar 29 18:39:24 CEST 2018
Cuckoo hash has build failure with gcc-8.
The casting here is suspect anyway. It should be fixed more directly.
CC rte_table_hash_cuckoo.o
lib/librte_table/rte_table_hash_cuckoo.c: In function ‘rte_table_hash_cuckoo_create’:
lib/librte_table/rte_table_hash_cuckoo.c:110:16: error: cast between incompatible function types from ‘rte_table_hash_op_hash’ {aka ‘long unsigned int (*)(void *, void *, unsigned int, long unsigned int)’} to ‘uint32_t (*)(const void *, uint32_t, uint32_t)’ {aka ‘unsigned int (*)(const void *, unsigned int, unsigned int)’} [-Werror=cast-function-type]
.hash_func = (rte_hash_function)(p->f_hash),
^
cc1: all warnings being treated as errors
More information about the dev
mailing list