net/vdev_netvsc: fix build without C11 and pedantic
authorOphir Munk <ophirmu@mellanox.com>
Wed, 24 Jan 2018 14:12:13 +0000 (14:12 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 24 Jan 2018 18:06:31 +0000 (19:06 +0100)
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")

Signed-off-by: Ophir Munk <ophirmu@mellanox.com>
Acked-by: Matan Azrad <matan@mellanox.com>
drivers/net/vdev_netvsc/Makefile

index f2b2ac5..45351b8 100644 (file)
@@ -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