From 16d0f161ef23d3025b467030fda667ecf13c80dd Mon Sep 17 00:00:00 2001 From: Matthias Baesken Date: Tue, 23 Jun 2026 12:08:06 +0000 Subject: [PATCH] 8386960: BUILD_LIBVERIFY remove special warning settings Reviewed-by: erikj, clanger --- make/modules/java.base/lib/CoreLibraries.gmk | 2 -- src/java.base/share/native/libverify/check_code.c | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) 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); }