From: Tom Lane Date: Tue, 7 Apr 2026 21:03:20 +0000 (-0400) Subject: Suppress unused-variable warning. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b268928f932cdfb899e96ab28badfe716298483e;p=thirdparty%2Fpostgresql.git Suppress unused-variable warning. x86 machines lacking HAVE__CPUIDEX saw a complaint about "unused variable 'reg'", per buildfarm as well as local experience. Oversight in bcb2cf41f. --- diff --git a/src/port/pg_cpu_x86.c b/src/port/pg_cpu_x86.c index 3844da511fd..32d0cecbe2c 100644 --- a/src/port/pg_cpu_x86.c +++ b/src/port/pg_cpu_x86.c @@ -241,9 +241,8 @@ x86_tsc_frequency_khz(void) static uint32 x86_hypervisor_tsc_frequency_khz(void) { - unsigned int reg[4] = {0}; - #if defined(HAVE__CPUIDEX) + unsigned int reg[4] = {0}; /* * The hypervisor is determined using the 0x40000000 Hypervisor