From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from proxy.6wind.com (host.76.145.23.62.rev.coltfrance.com [62.23.145.76]) by dpdk.org (Postfix) with ESMTP id B46F12BDC for ; Wed, 13 Jul 2016 15:13:38 +0200 (CEST) Received: from [10.16.0.195] (unknown [10.16.0.195]) by proxy.6wind.com (Postfix) with ESMTP id 79199262DE; Wed, 13 Jul 2016 15:13:38 +0200 (CEST) To: Adrien Mazarguil , dev@dpdk.org References: <1468413041-22357-1-git-send-email-adrien.mazarguil@6wind.com> From: Olivier MATZ Message-ID: <57863E82.4010405@6wind.com> Date: Wed, 13 Jul 2016 15:13:38 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.6.0 MIME-Version: 1.0 In-Reply-To: <1468413041-22357-1-git-send-email-adrien.mazarguil@6wind.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH] mempool: fix empty structure definition X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Jul 2016 13:13:38 -0000 On 07/13/2016 02:30 PM, Adrien Mazarguil wrote: > This commit addresses the following warning reported by clang, which > happens by default, as long as CONFIG_RTE_LIBRTE_MEMPOOL_DEBUG is disabled: > > warning: empty struct has size 0 in C, size 1 in C++ > > C and C++ must use the same size for objects to avoid corruption during run > time. > > Fixes: 97e7e685bfcd ("mempool: add structure for object trailers") > > Signed-off-by: Adrien Mazarguil Acked-by: Olivier Matz