From 323b7b9253f5434ee50a72aefdc4e01af8912a72 Mon Sep 17 00:00:00 2001 From: James Y Knight Date: Tue, 14 Jan 2025 15:26:28 -0500 Subject: [PATCH] Delete unused variable "core_apic_id" (Diagnosed by -Wunused-variable) --- src/x86/windows/init.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/x86/windows/init.c b/src/x86/windows/init.c index d2332802..7380bb46 100644 --- a/src/x86/windows/init.c +++ b/src/x86/windows/init.c @@ -265,8 +265,6 @@ BOOL CALLBACK cpuinfo_x86_windows_init(PINIT_ONCE init_once, PVOID parameter, PV * APIC order */ const uint32_t core_id = cores_count++; uint32_t smt_id = 0; - /* Reconstruct core part of APIC ID */ - const uint32_t core_apic_id = (core_id & core_bits_mask) << x86_processor.topology.core_bits_offset; /* Iterate processor groups and set the core & SMT parts of APIC * ID */ for (uint32_t i = 0; i < core_info->Processor.GroupCount; i++) {