DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] event/dsw: avoid supplying -Wno-format-nonliteral to icc
@ 2018-10-03  8:13 Mattias Rönnblom
  2018-10-03 19:18 ` Ferruh Yigit
  0 siblings, 1 reply; 4+ messages in thread
From: Mattias Rönnblom @ 2018-10-03  8:13 UTC (permalink / raw)
  To: Jerin Jacob; +Cc: Ferruh Yigit, dev, Mattias Rönnblom

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@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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-10-04 16:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-03  8:13 [dpdk-dev] [PATCH] event/dsw: avoid supplying -Wno-format-nonliteral to icc Mattias Rönnblom
2018-10-03 19:18 ` Ferruh Yigit
2018-10-04 16:09   ` Thomas Monjalon
2018-10-04 16:30     ` Thomas Monjalon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).