[source] json-c: disable implicit fallthrough warning (gcc 7)

LEDE Commits lede-commits at lists.infradead.org
Thu May 25 10:01:57 PDT 2017


nbd pushed a commit to source.git, branch master:
https://git.lede-project.org/e6d4235ae50ce025b74bc49e7ab442c92527cbc2

commit e6d4235ae50ce025b74bc49e7ab442c92527cbc2
Author: Felix Fietkau <nbd at nbd.name>
AuthorDate: Thu May 4 15:45:35 2017 +0200

    json-c: disable implicit fallthrough warning (gcc 7)
    
    Signed-off-by: Felix Fietkau <nbd at nbd.name>
---
 package/libs/libjson-c/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/libs/libjson-c/Makefile b/package/libs/libjson-c/Makefile
index 87dbc47..359a688 100644
--- a/package/libs/libjson-c/Makefile
+++ b/package/libs/libjson-c/Makefile
@@ -27,7 +27,7 @@ PKG_MAINTAINER:=Felix Fietkau <nbd at nbd.name>
 
 include $(INCLUDE_DIR)/package.mk
 
-TARGET_CFLAGS += $(FPIC)
+TARGET_CFLAGS += $(FPIC) -Wno-implicit-fallthrough
 
 define Package/libjson-c
   SECTION:=libs



More information about the lede-commits mailing list