diff --git a/make/modules/java.base/lib/CoreLibraries.gmk b/make/modules/java.base/lib/CoreLibraries.gmk index 164bf3704a8..8e3891a344c 100644 --- a/make/modules/java.base/lib/CoreLibraries.gmk +++ b/make/modules/java.base/lib/CoreLibraries.gmk @@ -35,8 +35,6 @@ ifeq ($(INCLUDE), true) $(eval $(call SetupJdkLibrary, BUILD_LIBVERIFY, \ NAME := verify, \ OPTIMIZATION := HIGH, \ - DISABLED_WARNINGS_gcc_check_code.c := unused-variable, \ - DISABLED_WARNINGS_clang_check_code.c := unused-variable, \ EXTRA_HEADER_DIRS := libjava, \ JDK_LIBS := libjvm, \ )) diff --git a/src/java.base/share/native/libverify/check_code.c b/src/java.base/share/native/libverify/check_code.c index e6aebead212..c0cc4ee33e2 100644 --- a/src/java.base/share/native/libverify/check_code.c +++ b/src/java.base/share/native/libverify/check_code.c @@ -3705,7 +3705,7 @@ CCerror (context_type *context, char *format, ...) static void CCout_of_memory(context_type *context) { - int n = print_CCerror_info(context); + print_CCerror_info(context); context->err_code = CC_OutOfMemory; longjmp(context->jump_buffer, 1); }