8196988: Resolve disabled warnings for libjimage
Summary: Fixed warnings related to implicit-fallthrough gcc option
Reviewed-by: psandoz, mchung
--- a/make/lib/CoreLibraries.gmk Fri Jun 15 17:34:01 2018 -0700
+++ b/make/lib/CoreLibraries.gmk Mon Jun 18 08:07:15 2018 +0530
@@ -195,7 +195,6 @@
OPTIMIZATION := LOW, \
CFLAGS := $(CFLAGS_JDKLIB), \
CXXFLAGS := $(CXXFLAGS_JDKLIB), \
- DISABLED_WARNINGS_gcc := implicit-fallthrough, \
CFLAGS_unix := -UDEBUG, \
LDFLAGS := $(LDFLAGS_JDKLIB) $(LDFLAGS_CXX_JDK) \
$(call SET_SHARED_LIBRARY_ORIGIN), \
--- a/src/java.base/share/native/libjimage/imageDecompressor.cpp Fri Jun 15 17:34:01 2018 -0700
+++ b/src/java.base/share/native/libjimage/imageDecompressor.cpp Mon Jun 18 08:07:15 2018 +0530
@@ -322,6 +322,7 @@
{
i++;
}
+ /* fall through */
default:
{
*uncompressed_resource = tag;