From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f54.google.com (mail-wm0-f54.google.com [74.125.82.54]) by dpdk.org (Postfix) with ESMTP id DB49511DE for ; Mon, 19 Sep 2016 17:00:06 +0200 (CEST) Received: by mail-wm0-f54.google.com with SMTP id b130so67388640wmc.0 for ; Mon, 19 Sep 2016 08:00:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=ih8UMJQNbp+dA2e4So/B5cOO80YLvOhQqYXxEW7Y7YA=; b=Lpvt/7XahRVZImUlybiin2Z7J4B1jk+f+0wy3tApuhm8Pt/nWH/kEaQygx5g6uGzSQ UbSZ3DuM4ScTewV6MwmohVslPi3BDeuWz52xWDTBFxo9/CXxksGI0tnA9Csd4rPpm259 N2y/gowRr4A0AokMPZ3q+DC2J0IDCWzdL+uzS3ApWzWw7bzUWOj1sajyplYlgBJ7vQQy eSZ3DidnPpEdH7+VIBPih8F76UCt6kG7bBXmBcvddG7V6FnaMkE96KQjMDt1/3lhdlie Y6dS19zu1Cu8uAbOlD4X1gFOLoXamQBr/oCQQsvIN15t0SHRfs4facRnAd3FY7lfJzPg E5LA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :content-transfer-encoding:in-reply-to; bh=ih8UMJQNbp+dA2e4So/B5cOO80YLvOhQqYXxEW7Y7YA=; b=Hm8J6MRJwBRAm7swlRh9kCRXPPl1ZC1MMANWnsNI3c0Sn4utbephc7Ixc8YCd8YSq/ nJrOMmztse+DA+ft5Ko2WituMUa4DFFPJ8K9E8KJ+g5yeNSLCw74q/9bgPlAzj6IpW/O xvUTY/ckfXBYj/gzkItbTVFEFQt3jbIH0LLceha5pxw+Qmzf2CxFpaBoSBe9GueHLzO6 uSP9b3stiYMgqFZ721cQYnoorMsj4QE/kzfJrA0Mq/XxzVAzkyaZPw5qujeIwgIAjt31 de+LRUDB76khiz0yEHtWyIcrBYyDkdxc123zbG9pCGhTgSCvJddBj9jz1Qz6s3aTRXDi IM4Q== X-Gm-Message-State: AE9vXwNo2Wrl4y7zI8iCD/Ze3v38FM3Ge4uBAT3WkD6LWrG+iNr8R8MUCPU4ZmIm8MykQFvc X-Received: by 10.28.70.70 with SMTP id t67mr6169683wma.35.1474297206365; Mon, 19 Sep 2016 08:00:06 -0700 (PDT) Received: from 6wind.com (guy78-3-82-239-227-177.fbx.proxad.net. [82.239.227.177]) by smtp.gmail.com with ESMTPSA id f69sm10906017wmg.19.2016.09.19.08.00.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Sep 2016 08:00:05 -0700 (PDT) Date: Mon, 19 Sep 2016 16:59:59 +0200 From: Adrien Mazarguil To: Bruce Richardson Cc: dev@dpdk.org Message-ID: <20160919145959.GB17252@6wind.com> Mail-Followup-To: Bruce Richardson , dev@dpdk.org References: <1474295814-4879-1-git-send-email-bruce.richardson@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1474295814-4879-1-git-send-email-bruce.richardson@intel.com> Subject: Re: [dpdk-dev] [PATCH] net/mlx: fix compile errors with ignore pedantic pragma 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: Mon, 19 Sep 2016 15:00:07 -0000 Hi Bruce, On Mon, Sep 19, 2016 at 03:36:54PM +0100, Bruce Richardson wrote: > With recent gcc versions, e.g. gcc 6.1, compilation of mlx drivers with > debug enabled produces lots of errors complaining that "pedantic" is > not a warning level that can be ignored. > > error: ‘-pedantic’ is not an option that controls warnings [-Werror=pragmas] > #pragma GCC diagnostic ignored "-pedantic" > ^~~~~~~~~~~ > > These errors can be removed by changing the "-pedantic" to "-Wpedantic". Nice to have a workaround, I thought they did not keep the option at all. However after testing: - It does not seem to work with GCC 4.6 and older, they prefer -pedantic: "warning: unknown option after `#pragma GCC diagnostic' kind". - GCC 4.9 (possibly 5.x as well) does not care, can use either -pedantic or -Wpedantic. - GCC 6 can only supports -Wpedantic. Note we're working toward removing the need for these #pragma in the first place as soon as possible, however in the meantime I fear that checking the GCC version is necessary. > Fixes: 7fae69eeff13 ("mlx4: new poll mode driver") > Fixes: 771fa900b73a ("mlx5: introduce new driver for Mellanox ConnectX-4 adapters") > > Signed-off-by: Bruce Richardson > --- > drivers/net/mlx4/mlx4.c | 8 ++++---- > drivers/net/mlx5/mlx5.c | 8 ++++---- > drivers/net/mlx5/mlx5.h | 8 ++++---- > drivers/net/mlx5/mlx5_ethdev.c | 4 ++-- > drivers/net/mlx5/mlx5_fdir.c | 8 ++++---- > drivers/net/mlx5/mlx5_mac.c | 8 ++++---- > drivers/net/mlx5/mlx5_mr.c | 8 ++++---- > drivers/net/mlx5/mlx5_prm.h | 4 ++-- > drivers/net/mlx5/mlx5_rss.c | 8 ++++---- > drivers/net/mlx5/mlx5_rxmode.c | 8 ++++---- > drivers/net/mlx5/mlx5_rxq.c | 8 ++++---- > drivers/net/mlx5/mlx5_rxtx.c | 8 ++++---- > drivers/net/mlx5/mlx5_rxtx.h | 8 ++++---- > drivers/net/mlx5/mlx5_stats.c | 4 ++-- > drivers/net/mlx5/mlx5_trigger.c | 4 ++-- > drivers/net/mlx5/mlx5_txq.c | 8 ++++---- > drivers/net/mlx5/mlx5_vlan.c | 4 ++-- > 17 files changed, 58 insertions(+), 58 deletions(-) > > diff --git a/drivers/net/mlx4/mlx4.c b/drivers/net/mlx4/mlx4.c > index efe60cf..5bdeac9 100644 > --- a/drivers/net/mlx4/mlx4.c > +++ b/drivers/net/mlx4/mlx4.c > @@ -61,16 +61,16 @@ > /* Verbs header. */ > /* ISO C doesn't support unnamed structs/unions, disabling -pedantic. */ > #ifdef PEDANTIC > -#pragma GCC diagnostic ignored "-pedantic" > +#pragma GCC diagnostic ignored "-Wpedantic" > #endif > #include > #ifdef PEDANTIC > -#pragma GCC diagnostic error "-pedantic" > +#pragma GCC diagnostic error "-Wpedantic" > #endif > > /* DPDK headers don't like -pedantic. */ > #ifdef PEDANTIC > -#pragma GCC diagnostic ignored "-pedantic" > +#pragma GCC diagnostic ignored "-Wpedantic" > #endif > #include > #include > @@ -87,7 +87,7 @@ > #include > #include > #ifdef PEDANTIC > -#pragma GCC diagnostic error "-pedantic" > +#pragma GCC diagnostic error "-Wpedantic" > #endif > > /* Generated configuration header. */ > diff --git a/drivers/net/mlx5/mlx5.c b/drivers/net/mlx5/mlx5.c > index 7264968..1a0a2be 100644 > --- a/drivers/net/mlx5/mlx5.c > +++ b/drivers/net/mlx5/mlx5.c > @@ -43,16 +43,16 @@ > /* Verbs header. */ > /* ISO C doesn't support unnamed structs/unions, disabling -pedantic. */ > #ifdef PEDANTIC > -#pragma GCC diagnostic ignored "-pedantic" > +#pragma GCC diagnostic ignored "-Wpedantic" > #endif > #include > #ifdef PEDANTIC > -#pragma GCC diagnostic error "-pedantic" > +#pragma GCC diagnostic error "-Wpedantic" > #endif > > /* DPDK headers don't like -pedantic. */ > #ifdef PEDANTIC > -#pragma GCC diagnostic ignored "-pedantic" > +#pragma GCC diagnostic ignored "-Wpedantic" > #endif > #include > #include > @@ -60,7 +60,7 @@ > #include > #include > #ifdef PEDANTIC > -#pragma GCC diagnostic error "-pedantic" > +#pragma GCC diagnostic error "-Wpedantic" > #endif > > #include "mlx5.h" > diff --git a/drivers/net/mlx5/mlx5.h b/drivers/net/mlx5/mlx5.h > index 3a86609..65241a6 100644 > --- a/drivers/net/mlx5/mlx5.h > +++ b/drivers/net/mlx5/mlx5.h > @@ -43,16 +43,16 @@ > /* Verbs header. */ > /* ISO C doesn't support unnamed structs/unions, disabling -pedantic. */ > #ifdef PEDANTIC > -#pragma GCC diagnostic ignored "-pedantic" > +#pragma GCC diagnostic ignored "-Wpedantic" > #endif > #include > #ifdef PEDANTIC > -#pragma GCC diagnostic error "-pedantic" > +#pragma GCC diagnostic error "-Wpedantic" > #endif > > /* DPDK headers don't like -pedantic. */ > #ifdef PEDANTIC > -#pragma GCC diagnostic ignored "-pedantic" > +#pragma GCC diagnostic ignored "-Wpedantic" > #endif > #include > #include > @@ -60,7 +60,7 @@ > #include > #include > #ifdef PEDANTIC > -#pragma GCC diagnostic error "-pedantic" > +#pragma GCC diagnostic error "-Wpedantic" > #endif > > #include "mlx5_utils.h" > diff --git a/drivers/net/mlx5/mlx5_ethdev.c b/drivers/net/mlx5/mlx5_ethdev.c > index 130e15d..17588a5 100644 > --- a/drivers/net/mlx5/mlx5_ethdev.c > +++ b/drivers/net/mlx5/mlx5_ethdev.c > @@ -50,7 +50,7 @@ > > /* DPDK headers don't like -pedantic. */ > #ifdef PEDANTIC > -#pragma GCC diagnostic ignored "-pedantic" > +#pragma GCC diagnostic ignored "-Wpedantic" > #endif > #include > #include > @@ -60,7 +60,7 @@ > #include > #include > #ifdef PEDANTIC > -#pragma GCC diagnostic error "-pedantic" > +#pragma GCC diagnostic error "-Wpedantic" > #endif > > #include "mlx5.h" > diff --git a/drivers/net/mlx5/mlx5_fdir.c b/drivers/net/mlx5/mlx5_fdir.c > index 73eb00e..070edde 100644 > --- a/drivers/net/mlx5/mlx5_fdir.c > +++ b/drivers/net/mlx5/mlx5_fdir.c > @@ -40,23 +40,23 @@ > /* Verbs header. */ > /* ISO C doesn't support unnamed structs/unions, disabling -pedantic. */ > #ifdef PEDANTIC > -#pragma GCC diagnostic ignored "-pedantic" > +#pragma GCC diagnostic ignored "-Wpedantic" > #endif > #include > #ifdef PEDANTIC > -#pragma GCC diagnostic error "-pedantic" > +#pragma GCC diagnostic error "-Wpedantic" > #endif > > /* DPDK headers don't like -pedantic. */ > #ifdef PEDANTIC > -#pragma GCC diagnostic ignored "-pedantic" > +#pragma GCC diagnostic ignored "-Wpedantic" > #endif > #include > #include > #include > #include > #ifdef PEDANTIC > -#pragma GCC diagnostic error "-pedantic" > +#pragma GCC diagnostic error "-Wpedantic" > #endif > > #include "mlx5.h" > diff --git a/drivers/net/mlx5/mlx5_mac.c b/drivers/net/mlx5/mlx5_mac.c > index f6b27bb..4fcfd3b 100644 > --- a/drivers/net/mlx5/mlx5_mac.c > +++ b/drivers/net/mlx5/mlx5_mac.c > @@ -44,22 +44,22 @@ > /* Verbs header. */ > /* ISO C doesn't support unnamed structs/unions, disabling -pedantic. */ > #ifdef PEDANTIC > -#pragma GCC diagnostic ignored "-pedantic" > +#pragma GCC diagnostic ignored "-Wpedantic" > #endif > #include > #ifdef PEDANTIC > -#pragma GCC diagnostic error "-pedantic" > +#pragma GCC diagnostic error "-Wpedantic" > #endif > > /* DPDK headers don't like -pedantic. */ > #ifdef PEDANTIC > -#pragma GCC diagnostic ignored "-pedantic" > +#pragma GCC diagnostic ignored "-Wpedantic" > #endif > #include > #include > #include > #ifdef PEDANTIC > -#pragma GCC diagnostic error "-pedantic" > +#pragma GCC diagnostic error "-Wpedantic" > #endif > > #include "mlx5.h" > diff --git a/drivers/net/mlx5/mlx5_mr.c b/drivers/net/mlx5/mlx5_mr.c > index 67dfefa..0a36384 100644 > --- a/drivers/net/mlx5/mlx5_mr.c > +++ b/drivers/net/mlx5/mlx5_mr.c > @@ -34,20 +34,20 @@ > /* Verbs header. */ > /* ISO C doesn't support unnamed structs/unions, disabling -pedantic. */ > #ifdef PEDANTIC > -#pragma GCC diagnostic ignored "-pedantic" > +#pragma GCC diagnostic ignored "-Wpedantic" > #endif > #include > #ifdef PEDANTIC > -#pragma GCC diagnostic error "-pedantic" > +#pragma GCC diagnostic error "-Wpedantic" > #endif > > /* DPDK headers don't like -pedantic. */ > #ifdef PEDANTIC > -#pragma GCC diagnostic ignored "-pedantic" > +#pragma GCC diagnostic ignored "-Wpedantic" > #endif > #include > #ifdef PEDANTIC > -#pragma GCC diagnostic error "-pedantic" > +#pragma GCC diagnostic error "-Wpedantic" > #endif > > #include "mlx5.h" > diff --git a/drivers/net/mlx5/mlx5_prm.h b/drivers/net/mlx5/mlx5_prm.h > index 5db219b..4383009 100644 > --- a/drivers/net/mlx5/mlx5_prm.h > +++ b/drivers/net/mlx5/mlx5_prm.h > @@ -37,11 +37,11 @@ > /* Verbs header. */ > /* ISO C doesn't support unnamed structs/unions, disabling -pedantic. */ > #ifdef PEDANTIC > -#pragma GCC diagnostic ignored "-pedantic" > +#pragma GCC diagnostic ignored "-Wpedantic" > #endif > #include > #ifdef PEDANTIC > -#pragma GCC diagnostic error "-pedantic" > +#pragma GCC diagnostic error "-Wpedantic" > #endif > > /* Get CQE owner bit. */ > diff --git a/drivers/net/mlx5/mlx5_rss.c b/drivers/net/mlx5/mlx5_rss.c > index 639e935..0bed74e 100644 > --- a/drivers/net/mlx5/mlx5_rss.c > +++ b/drivers/net/mlx5/mlx5_rss.c > @@ -40,21 +40,21 @@ > /* Verbs header. */ > /* ISO C doesn't support unnamed structs/unions, disabling -pedantic. */ > #ifdef PEDANTIC > -#pragma GCC diagnostic ignored "-pedantic" > +#pragma GCC diagnostic ignored "-Wpedantic" > #endif > #include > #ifdef PEDANTIC > -#pragma GCC diagnostic error "-pedantic" > +#pragma GCC diagnostic error "-Wpedantic" > #endif > > /* DPDK headers don't like -pedantic. */ > #ifdef PEDANTIC > -#pragma GCC diagnostic ignored "-pedantic" > +#pragma GCC diagnostic ignored "-Wpedantic" > #endif > #include > #include > #ifdef PEDANTIC > -#pragma GCC diagnostic error "-pedantic" > +#pragma GCC diagnostic error "-Wpedantic" > #endif > > #include "mlx5.h" > diff --git a/drivers/net/mlx5/mlx5_rxmode.c b/drivers/net/mlx5/mlx5_rxmode.c > index 8b58555..173e6e8 100644 > --- a/drivers/net/mlx5/mlx5_rxmode.c > +++ b/drivers/net/mlx5/mlx5_rxmode.c > @@ -38,20 +38,20 @@ > /* Verbs header. */ > /* ISO C doesn't support unnamed structs/unions, disabling -pedantic. */ > #ifdef PEDANTIC > -#pragma GCC diagnostic ignored "-pedantic" > +#pragma GCC diagnostic ignored "-Wpedantic" > #endif > #include > #ifdef PEDANTIC > -#pragma GCC diagnostic error "-pedantic" > +#pragma GCC diagnostic error "-Wpedantic" > #endif > > /* DPDK headers don't like -pedantic. */ > #ifdef PEDANTIC > -#pragma GCC diagnostic ignored "-pedantic" > +#pragma GCC diagnostic ignored "-Wpedantic" > #endif > #include > #ifdef PEDANTIC > -#pragma GCC diagnostic error "-pedantic" > +#pragma GCC diagnostic error "-Wpedantic" > #endif > > #include "mlx5.h" > diff --git a/drivers/net/mlx5/mlx5_rxq.c b/drivers/net/mlx5/mlx5_rxq.c > index 29c137c..99027d2 100644 > --- a/drivers/net/mlx5/mlx5_rxq.c > +++ b/drivers/net/mlx5/mlx5_rxq.c > @@ -40,25 +40,25 @@ > /* Verbs header. */ > /* ISO C doesn't support unnamed structs/unions, disabling -pedantic. */ > #ifdef PEDANTIC > -#pragma GCC diagnostic ignored "-pedantic" > +#pragma GCC diagnostic ignored "-Wpedantic" > #endif > #include > #include > #include > #ifdef PEDANTIC > -#pragma GCC diagnostic error "-pedantic" > +#pragma GCC diagnostic error "-Wpedantic" > #endif > > /* DPDK headers don't like -pedantic. */ > #ifdef PEDANTIC > -#pragma GCC diagnostic ignored "-pedantic" > +#pragma GCC diagnostic ignored "-Wpedantic" > #endif > #include > #include > #include > #include > #ifdef PEDANTIC > -#pragma GCC diagnostic error "-pedantic" > +#pragma GCC diagnostic error "-Wpedantic" > #endif > > #include "mlx5.h" > diff --git a/drivers/net/mlx5/mlx5_rxtx.c b/drivers/net/mlx5/mlx5_rxtx.c > index fce3381..a13cbc7 100644 > --- a/drivers/net/mlx5/mlx5_rxtx.c > +++ b/drivers/net/mlx5/mlx5_rxtx.c > @@ -39,18 +39,18 @@ > /* Verbs header. */ > /* ISO C doesn't support unnamed structs/unions, disabling -pedantic. */ > #ifdef PEDANTIC > -#pragma GCC diagnostic ignored "-pedantic" > +#pragma GCC diagnostic ignored "-Wpedantic" > #endif > #include > #include > #include > #ifdef PEDANTIC > -#pragma GCC diagnostic error "-pedantic" > +#pragma GCC diagnostic error "-Wpedantic" > #endif > > /* DPDK headers don't like -pedantic. */ > #ifdef PEDANTIC > -#pragma GCC diagnostic ignored "-pedantic" > +#pragma GCC diagnostic ignored "-Wpedantic" > #endif > #include > #include > @@ -59,7 +59,7 @@ > #include > #include > #ifdef PEDANTIC > -#pragma GCC diagnostic error "-pedantic" > +#pragma GCC diagnostic error "-Wpedantic" > #endif > > #include "mlx5.h" > diff --git a/drivers/net/mlx5/mlx5_rxtx.h b/drivers/net/mlx5/mlx5_rxtx.h > index f6e2cba..952f88c 100644 > --- a/drivers/net/mlx5/mlx5_rxtx.h > +++ b/drivers/net/mlx5/mlx5_rxtx.h > @@ -40,22 +40,22 @@ > /* Verbs header. */ > /* ISO C doesn't support unnamed structs/unions, disabling -pedantic. */ > #ifdef PEDANTIC > -#pragma GCC diagnostic ignored "-pedantic" > +#pragma GCC diagnostic ignored "-Wpedantic" > #endif > #include > #include > #ifdef PEDANTIC > -#pragma GCC diagnostic error "-pedantic" > +#pragma GCC diagnostic error "-Wpedantic" > #endif > > /* DPDK headers don't like -pedantic. */ > #ifdef PEDANTIC > -#pragma GCC diagnostic ignored "-pedantic" > +#pragma GCC diagnostic ignored "-Wpedantic" > #endif > #include > #include > #ifdef PEDANTIC > -#pragma GCC diagnostic error "-pedantic" > +#pragma GCC diagnostic error "-Wpedantic" > #endif > > #include "mlx5_utils.h" > diff --git a/drivers/net/mlx5/mlx5_stats.c b/drivers/net/mlx5/mlx5_stats.c > index 2d3cb51..f2b5781 100644 > --- a/drivers/net/mlx5/mlx5_stats.c > +++ b/drivers/net/mlx5/mlx5_stats.c > @@ -33,11 +33,11 @@ > > /* DPDK headers don't like -pedantic. */ > #ifdef PEDANTIC > -#pragma GCC diagnostic ignored "-pedantic" > +#pragma GCC diagnostic ignored "-Wpedantic" > #endif > #include > #ifdef PEDANTIC > -#pragma GCC diagnostic error "-pedantic" > +#pragma GCC diagnostic error "-Wpedantic" > #endif > > #include "mlx5.h" > diff --git a/drivers/net/mlx5/mlx5_trigger.c b/drivers/net/mlx5/mlx5_trigger.c > index e9b9a29..d4dccd8 100644 > --- a/drivers/net/mlx5/mlx5_trigger.c > +++ b/drivers/net/mlx5/mlx5_trigger.c > @@ -33,14 +33,14 @@ > > /* DPDK headers don't like -pedantic. */ > #ifdef PEDANTIC > -#pragma GCC diagnostic ignored "-pedantic" > +#pragma GCC diagnostic ignored "-Wpedantic" > #endif > #include > #include > #include > #include > #ifdef PEDANTIC > -#pragma GCC diagnostic error "-pedantic" > +#pragma GCC diagnostic error "-Wpedantic" > #endif > > #include "mlx5.h" > diff --git a/drivers/net/mlx5/mlx5_txq.c b/drivers/net/mlx5/mlx5_txq.c > index 6fe61c4..476ce79 100644 > --- a/drivers/net/mlx5/mlx5_txq.c > +++ b/drivers/net/mlx5/mlx5_txq.c > @@ -40,23 +40,23 @@ > /* Verbs header. */ > /* ISO C doesn't support unnamed structs/unions, disabling -pedantic. */ > #ifdef PEDANTIC > -#pragma GCC diagnostic ignored "-pedantic" > +#pragma GCC diagnostic ignored "-Wpedantic" > #endif > #include > #ifdef PEDANTIC > -#pragma GCC diagnostic error "-pedantic" > +#pragma GCC diagnostic error "-Wpedantic" > #endif > > /* DPDK headers don't like -pedantic. */ > #ifdef PEDANTIC > -#pragma GCC diagnostic ignored "-pedantic" > +#pragma GCC diagnostic ignored "-Wpedantic" > #endif > #include > #include > #include > #include > #ifdef PEDANTIC > -#pragma GCC diagnostic error "-pedantic" > +#pragma GCC diagnostic error "-Wpedantic" > #endif > > #include "mlx5_utils.h" > diff --git a/drivers/net/mlx5/mlx5_vlan.c b/drivers/net/mlx5/mlx5_vlan.c > index 4719e69..64e599d 100644 > --- a/drivers/net/mlx5/mlx5_vlan.c > +++ b/drivers/net/mlx5/mlx5_vlan.c > @@ -38,12 +38,12 @@ > > /* DPDK headers don't like -pedantic. */ > #ifdef PEDANTIC > -#pragma GCC diagnostic ignored "-pedantic" > +#pragma GCC diagnostic ignored "-Wpedantic" > #endif > #include > #include > #ifdef PEDANTIC > -#pragma GCC diagnostic error "-pedantic" > +#pragma GCC diagnostic error "-Wpedantic" > #endif > > #include "mlx5_utils.h" > -- > 2.7.4 > -- Adrien Mazarguil 6WIND