From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adrien Mazarguil Subject: Re: [PATCH v3 00/11] Fix build errors related to exported headers Date: Fri, 8 Jul 2016 10:05:43 +0200 Message-ID: <20160708080543.GB7621@6wind.com> References: <10B01822-557C-400A-A6BE-DBFF60AF90E4@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: "dev@dpdk.org" To: "Wiles, Keith" Return-path: Received: from mail-wm0-f46.google.com (mail-wm0-f46.google.com [74.125.82.46]) by dpdk.org (Postfix) with ESMTP id 81B16568A for ; Fri, 8 Jul 2016 10:05:46 +0200 (CEST) Received: by mail-wm0-f46.google.com with SMTP id n127so7660813wme.1 for ; Fri, 08 Jul 2016 01:05:46 -0700 (PDT) Content-Disposition: inline In-Reply-To: <10B01822-557C-400A-A6BE-DBFF60AF90E4@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" On Thu, Jul 07, 2016 at 06:33:17PM +0000, Wiles, Keith wrote: > > > On Jul 7, 2016, at 10:49 AM, Adrien Mazarguil wrote: > > > > DPDK uses GNU C language extensions in most of its code base. This is fine > > for internal source files whose compilation flags are controlled by DPDK, > > however user applications that use exported "public" headers may experience > > compilation failures when enabling strict error/standard checks (-std and > > -pedantic for instance). > > Do you try compiling these changes with CLANG and/or ICC compilers? clang/clang++ yes, works fine. I did not try with ICC however. Note that considering "({ ... })" is a GNU extension, compilers that do support this syntax also support the GNU __extension__ keyword. As a result, those that do not support this keyword most likely already cannot compile DPDK at all. -- Adrien Mazarguil 6WIND