From: Daniel Santos Date: Tue, 8 Jan 2019 12:48:03 +0000 (-0600) Subject: classpath: Fix breakage caused by -Werror=implicit-fallthrough X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=0588441516460732ac5d63bf013d6f8591763320;p=openwrt-packages.git classpath: Fix breakage caused by -Werror=implicit-fallthrough classpath builds with -Wextra and, unless configured with --disable-werror, -Werror. Since GCC 7 added -Wimplicit-fallthrough=3 to -Wextra we need to make it not an error for code that doesn't use __attribute__((fallthrough)) yet. Signed-off-by: Daniel Santos --- diff --git a/libs/classpath/Makefile b/libs/classpath/Makefile index 39a8dbcb7..9eed414f8 100644 --- a/libs/classpath/Makefile +++ b/libs/classpath/Makefile @@ -50,6 +50,7 @@ define Download/antlr endef $(eval $(call Download,antlr)) +EXTRA_CFLAGS += -Wno-error=implicit-fallthrough CONFIGURE_ARGS += \ --with-gmp="$(STAGING_DIR)/usr" \ --without-x \