From e5483673b431113aad4e64bcf2639617921ba711 Mon Sep 17 00:00:00 2001 From: Bingwu Zhang Date: Tue, 21 Jan 2025 19:30:46 +0800 Subject: [PATCH] LoongArch: Remove unused partial initializers The zero is not used for initializedness checking and it is causing compilation warnings on Clang because it only initializes the first field of CpuidInfo, leaving other fields uninitialized. Signed-off-by: Bingwu Zhang --- src/hotspot/cpu/loongarch/vm_version_loongarch.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hotspot/cpu/loongarch/vm_version_loongarch.cpp b/src/hotspot/cpu/loongarch/vm_version_loongarch.cpp index 4c5fb86266196..5ae75a7333163 100644 --- a/src/hotspot/cpu/loongarch/vm_version_loongarch.cpp +++ b/src/hotspot/cpu/loongarch/vm_version_loongarch.cpp @@ -37,7 +37,7 @@ # include "os_linux.inline.hpp" #endif -VM_Version::CpuidInfo VM_Version::_cpuid_info = { 0, }; +VM_Version::CpuidInfo VM_Version::_cpuid_info = {}; bool VM_Version::_cpu_info_is_initialized = false; static BufferBlob* stub_blob;