changeset 51238:929621cf06b4

8196988: Resolve disabled warnings for libjimage Summary: Fixed warnings related to implicit-fallthrough gcc option Reviewed-by: psandoz, mchung
author sdama
date Mon, 18 Jun 2018 08:07:15 +0530
parents 95c0644a1c47
children 7f63c74f0974
files make/lib/CoreLibraries.gmk src/java.base/share/native/libjimage/imageDecompressor.cpp
diffstat 2 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;