From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] hash: fix compilation for gcc 4.4/4.5 Date: Thu, 16 Jul 2015 16:55:59 +0200 Message-ID: <11976426.8bplYeqtma@xps13> References: <1436964043-5729-1-git-send-email-pablo.de.lara.guarch@intel.com> <1436964043-5729-2-git-send-email-pablo.de.lara.guarch@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org To: Pablo de Lara Return-path: Received: from mail-wg0-f50.google.com (mail-wg0-f50.google.com [74.125.82.50]) by dpdk.org (Postfix) with ESMTP id 5330F5A87 for ; Thu, 16 Jul 2015 16:57:11 +0200 (CEST) Received: by wgkl9 with SMTP id l9so60619290wgk.1 for ; Thu, 16 Jul 2015 07:57:10 -0700 (PDT) In-Reply-To: <1436964043-5729-2-git-send-email-pablo.de.lara.guarch@intel.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 2015-07-15 13:40, Pablo de Lara: > gcc 4.4 and 4.5 throws following error: > rte_cuckoo_hash.c:145: error: flexible array member in otherwise empty struct. > > This is due to empty length in flexible array, which has been changed to use > size 0 in the declaration of the array. > > Fixes: 48a399119619 ("hash: replace with cuckoo hash implementation") > > Reported-by: Olga Shern > Signed-off-by: Pablo de Lara Applied, thanks