[dpdk-dev] [PATCH] event/dsw: avoid supplying -Wno-format-nonliteral to icc
Mattias Rönnblom
mattias.ronnblom at ericsson.com
Wed Oct 3 10:13:53 CEST 2018
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 with icc.
Signed-off-by: Mattias Rönnblom <mattias.ronnblom at ericsson.com>
---
drivers/event/dsw/Makefile | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/event/dsw/Makefile b/drivers/event/dsw/Makefile
index ea1e5259a..490ed0b98 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.17.1
More information about the dev
mailing list