From 85046e4ee99db8cf6387a5a0cd4dec525ed27189 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Mattias=20R=C3=B6nnblom?= Date: Thu, 4 Oct 2018 13:21:13 +0200 Subject: [PATCH] event/dsw: fix build with icc MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Make the -Wno-format-nonliteral flag conditional, and only set in clang and gcc builds, since this flag is not supported (nor needed) when building dsw with icc. Fixes: 46a186b1f0c5 ("event/dsw: add device registration and build system") Signed-off-by: Mattias Rönnblom Reviewed-by: Ferruh Yigit --- drivers/event/dsw/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/event/dsw/Makefile b/drivers/event/dsw/Makefile index ea1e5259a5..490ed0b985 100644 --- a/drivers/event/dsw/Makefile +++ b/drivers/event/dsw/Makefile @@ -8,7 +8,9 @@ LIB = librte_pmd_dsw_event.a CFLAGS += -DALLOW_EXPERIMENTAL_API CFLAGS += -O3 CFLAGS += $(WERROR_FLAGS) +ifneq ($(CONFIG_RTE_TOOLCHAIN_ICC),y) CFLAGS += -Wno-format-nonliteral +endif LDLIBS += -lrte_eal LDLIBS += -lrte_mbuf -- 2.20.1