classpath: Fix breakage caused by -Werror=implicit-fallthrough
authorDaniel Santos <redacted>
Tue, 8 Jan 2019 12:48:03 +0000 (06:48 -0600)
committerDaniel Santos <redacted>
Wed, 9 Jan 2019 02:29:09 +0000 (20:29 -0600)
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 <redacted>
libs/classpath/Makefile

index 39a8dbcb7118aca70b5530e0b5cfb7e695ee6773..9eed414f80530fa8f1f9867d7f02d7dc7418f16c 100644 (file)
@@ -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 \
git clone https://git.99rst.org/PROJECT