From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yongseok Koh Subject: Re: [PATCH] net/mlx: update C compliance standard Date: Fri, 30 Jun 2017 18:14:56 +0000 Message-ID: <1C0F2AC4-AF9D-4A02-A35A-F70577FE67B5@mellanox.com> References: <4bc47a8c50dc528f8061d95cdd0c0934e4e40b38.1498843072.git.adrien.mazarguil@6wind.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Cc: Adrien Mazarguil , =?iso-8859-1?Q?N=E9lio_Laranjeiro?= , "dev@dpdk.org" To: Ferruh Yigit Return-path: Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0085.outbound.protection.outlook.com [104.47.0.85]) by dpdk.org (Postfix) with ESMTP id 5CFE32BE1 for ; Fri, 30 Jun 2017 20:14:58 +0200 (CEST) In-Reply-To: Content-Language: en-US Content-ID: <19D62EE4AB761440B2FE2D6F054A6B7E@eurprd05.prod.outlook.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" > On Jun 30, 2017, at 10:47 AM, Ferruh Yigit wrote= : >=20 > On 6/30/2017 6:19 PM, Adrien Mazarguil wrote: >> This commit addresses a compilation issue against Glibc >=3D 2.25, which >> implements assert() through a nonstandard ({ }) construct. Such construc= ts >> can normally not be used without __extension__ keyword when -pedantic is >> enabled, as is the case when compiling mlx4 and mlx5 PMDs in debug mode. >>=20 >> While assert.h checks for the compiler ability to support GNU extensions= , >> Clang, unlike GCC, does not allow the above syntax when combining >> -std=3Dgnu99 with -pedantic. >>=20 >> Work around missing keyword by moving these PMDs to a stricter complianc= e >> standard without GNU extensions but properly checked by Glibc. Doing so = is >> supported on the DPDK side since includes have been cleaned up. >>=20 >> Signed-off-by: Adrien Mazarguil >=20 > Applied to dpdk-next-net/master, thanks. This breaks debug-enabled build of mlx5 as mlx5 isn't ready yet! Thanks, Yongseok