crypto/dpaa2_sec: fix build with gcc 7.1
authorHemant Agrawal <hemant.agrawal@nxp.com>
Tue, 11 Jul 2017 14:55:52 +0000 (20:25 +0530)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 14 Jul 2017 13:51:24 +0000 (15:51 +0200)
Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>
drivers/crypto/dpaa2_sec/Makefile

index f109115..c2a02ed 100644 (file)
@@ -46,6 +46,10 @@ CFLAGS += $(WERROR_FLAGS)
 endif
 CFLAGS += -D _GNU_SOURCE
 
+ifeq ($(shell test $(GCC_VERSION) -gt 70 && echo 1), 1)
+CFLAGS += -Wno-implicit-fallthrough
+endif
+
 CFLAGS += -I$(RTE_SDK)/drivers/crypto/dpaa2_sec/
 CFLAGS += -I$(RTE_SDK)/drivers/crypto/dpaa2_sec/mc
 CFLAGS += -I$(RTE_SDK)/drivers/bus/fslmc/