event/dsw: fix build with icc
authorMattias Rönnblom <mattias.ronnblom@ericsson.com>
Thu, 4 Oct 2018 11:21:13 +0000 (13:21 +0200)
committerJerin Jacob <jerin.jacob@caviumnetworks.com>
Thu, 4 Oct 2018 14:17:07 +0000 (16:17 +0200)
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 <mattias.ronnblom@ericsson.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/event/dsw/Makefile

index ea1e525..490ed0b 100644 (file)
@@ -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