DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [BUG] cuckoo_hash build failure with gcc-8
@ 2018-03-29 16:39 Stephen Hemminger
  2018-04-04 14:31 ` Thomas Monjalon
  0 siblings, 1 reply; 2+ messages in thread
From: Stephen Hemminger @ 2018-03-29 16:39 UTC (permalink / raw)
  To: dev

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [dpdk-dev] [BUG] cuckoo_hash build failure with gcc-8
  2018-03-29 16:39 [dpdk-dev] [BUG] cuckoo_hash build failure with gcc-8 Stephen Hemminger
@ 2018-04-04 14:31 ` Thomas Monjalon
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Monjalon @ 2018-04-04 14:31 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: dev, pablo.de.lara.guarch

+Cc Pablo

29/03/2018 18:39, Stephen Hemminger:
> 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-04-04 14:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-29 16:39 [dpdk-dev] [BUG] cuckoo_hash build failure with gcc-8 Stephen Hemminger
2018-04-04 14:31 ` Thomas Monjalon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).