From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [BUG] cuckoo_hash build failure with gcc-8 Date: Wed, 04 Apr 2018 16:31:55 +0200 Message-ID: <2469243.8txvrLPoSt@xps> References: <20180329093924.1984d7f4@xeon-e3> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Cc: dev@dpdk.org, pablo.de.lara.guarch@intel.com To: Stephen Hemminger Return-path: Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) by dpdk.org (Postfix) with ESMTP id 361AF1C691 for ; Wed, 4 Apr 2018 16:31:58 +0200 (CEST) In-Reply-To: <20180329093924.1984d7f4@xeon-e3> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" +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. >=20 > CC rte_table_hash_cuckoo.o > lib/librte_table/rte_table_hash_cuckoo.c: In function =E2=80=98rte_table_= hash_cuckoo_create=E2=80=99: > lib/librte_table/rte_table_hash_cuckoo.c:110:16: error: cast between inco= mpatible function types from =E2=80=98rte_table_hash_op_hash=E2=80=99 {aka = =E2=80=98long unsigned int (*)(void *, void *, unsigned int, long unsigned= int)=E2=80=99} to =E2=80=98uint32_t (*)(const void *, uint32_t, uint32_t)= =E2=80=99 {aka =E2=80=98unsigned int (*)(const void *, unsigned int, unsig= ned int)=E2=80=99} [-Werror=3Dcast-function-type] > .hash_func =3D (rte_hash_function)(p->f_hash), > ^ > cc1: all warnings being treated as errors