From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: Re: [PATCH v2] net/vdev_netvsc: fix build using C11 mode and pedantic Date: Wed, 24 Jan 2018 07:39:15 -0800 Message-ID: <20180124073915.753a4764@xeon-e3> References: <1516792792-10119-1-git-send-email-ophirmu@mellanox.com> <1516803133-17529-1-git-send-email-ophirmu@mellanox.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: dev@dpdk.org, Matan Azrad , Thomas Monjalon , Olga Shern , Adrien Mazarguil , stable@dpdk.org To: Ophir Munk Return-path: Received: from mail-pf0-f195.google.com (mail-pf0-f195.google.com [209.85.192.195]) by dpdk.org (Postfix) with ESMTP id 996251B1B4 for ; Wed, 24 Jan 2018 16:39:18 +0100 (CET) Received: by mail-pf0-f195.google.com with SMTP id b25so3330332pfd.9 for ; Wed, 24 Jan 2018 07:39:18 -0800 (PST) In-Reply-To: <1516803133-17529-1-git-send-email-ophirmu@mellanox.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 Wed, 24 Jan 2018 14:12:13 +0000 Ophir Munk wrote: > Remove CFLAGS -std=c11 and -pedantic in order to guarantee > a successful vdev_netvsc compilation on old Linux distributions. > Otherwise old GCC compilers may complain as follows: > cc1: error: unrecognized command line option -std=c11 > > Fixes: 6086ab3bb3d2 ("net/vdev_netvsc: introduce Hyper-V platform driver") > Cc: stable@dpdk.org > > Signed-off-by: Ophir Munk > --- > drivers/net/vdev_netvsc/Makefile | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/net/vdev_netvsc/Makefile b/drivers/net/vdev_netvsc/Makefile > index f2b2ac5..45351b8 100644 > --- a/drivers/net/vdev_netvsc/Makefile > +++ b/drivers/net/vdev_netvsc/Makefile > @@ -12,7 +12,7 @@ EXPORT_MAP := rte_pmd_vdev_netvsc_version.map > # Additional compilation flags. > CFLAGS += -O3 > CFLAGS += -g > -CFLAGS += -std=c11 -pedantic -Wall -Wextra > +CFLAGS += -Wall -Wextra > CFLAGS += -D_XOPEN_SOURCE=600 > CFLAGS += -D_BSD_SOURCE > CFLAGS += -D_DEFAULT_SOURCE Why did this driver not use $(WERROR) like rest of DPDK drivers.