8196988: Resolve disabled warnings for libjimage
authorsdama
Mon, 18 Jun 2018 08:07:15 +0530
changeset 50604 929621cf06b4
parent 50603 95c0644a1c47
child 50605 7f63c74f0974
8196988: Resolve disabled warnings for libjimage Summary: Fixed warnings related to implicit-fallthrough gcc option Reviewed-by: psandoz, mchung
make/lib/CoreLibraries.gmk
src/java.base/share/native/libjimage/imageDecompressor.cpp
--- 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;