diff --git a/make/lib/CoreLibraries.gmk b/make/lib/CoreLibraries.gmk index c10d2535f2f..c7286572be6 100644 --- a/make/lib/CoreLibraries.gmk +++ b/make/lib/CoreLibraries.gmk @@ -144,7 +144,7 @@ $(eval $(call SetupJdkLibrary, BUILD_LIBZIP, \ CFLAGS := $(CFLAGS_JDKLIB) \ $(LIBZ_CFLAGS), \ CFLAGS_unix := $(BUILD_LIBZIP_MMAP) -UDEBUG, \ - DISABLED_WARNINGS_gcc := unused-function, \ + DISABLED_WARNINGS_gcc := unused-function implicit-fallthrough, \ LDFLAGS := $(LDFLAGS_JDKLIB) \ $(call SET_SHARED_LIBRARY_ORIGIN), \ LIBS_unix := -ljvm -ljava $(LIBZ_LIBS), \ @@ -210,7 +210,7 @@ $(eval $(call SetupJdkLibrary, BUILD_LIBJLI, \ EXTRA_FILES := $(LIBJLI_EXTRA_FILES), \ OPTIMIZATION := HIGH, \ CFLAGS := $(CFLAGS_JDKLIB) $(LIBJLI_CFLAGS), \ - DISABLED_WARNINGS_gcc := unused-function, \ + DISABLED_WARNINGS_gcc := unused-function implicit-fallthrough, \ DISABLED_WARNINGS_clang := sometimes-uninitialized format-nonliteral, \ LDFLAGS := $(LDFLAGS_JDKLIB) \ $(call SET_SHARED_LIBRARY_ORIGIN), \