From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?q?Mattias=20R=C3=B6nnblom?= Subject: [PATCH] event/dsw: avoid supplying -Wno-format-nonliteral to icc Date: Wed, 3 Oct 2018 10:13:53 +0200 Message-ID: <20181003081353.6679-1-mattias.ronnblom@ericsson.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit Cc: Ferruh Yigit , , =?UTF-8?q?Mattias=20R=C3=B6nnblom?= To: Jerin Jacob Return-path: Received: from sesbmg22.ericsson.net (sesbmg22.ericsson.net [193.180.251.48]) by dpdk.org (Postfix) with ESMTP id 802004C9F for ; Wed, 3 Oct 2018 10:23:03 +0200 (CEST) List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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 --- 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