Skip to content

Commit 382942d

Browse files
committed
8326109: GCC 13 reports maybe-uninitialized warnings for jni.cpp with dtrace enabled
Reviewed-by: phh
1 parent de3ae6f commit 382942d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

make/hotspot/lib/JvmOverrideFiles.gmk

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ ifeq ($(TOOLCHAIN_TYPE), gcc)
4040
# Need extra inlining to collapse all marking code into the hot marking loop
4141
BUILD_LIBJVM_shenandoahConcurrentMark.cpp_CXXFLAGS := --param inline-unit-growth=1000
4242
endif
43+
ifeq ($(call check-jvm-feature, dtrace), true)
44+
# DTRACE_PROBE macros trigger a maybe-uninitialized warning on 'ret'
45+
BUILD_LIBJVM_jni.cpp_CXXFLAGS := -Wno-maybe-uninitialized
46+
endif
4347
endif
4448

4549
LIBJVM_FDLIBM_COPY_OPT_FLAG := $(CXX_O_FLAG_NONE)

0 commit comments

Comments
 (0)