From d23179d0501d1ace59d4cbd9220fbc9fa83585bd Mon Sep 17 00:00:00 2001 From: Dianjin Wang Date: Mon, 26 Oct 2026 13:54:34 +0800 Subject: [PATCH] Fix redeclared $macro in gen_node_support.pl The read-fast block of gen_node_support.pl declared "my $macro" a second time in the same scope as the read block just above it, computing the same value, so every build that generates node support prints "my" variable $macro masks earlier declaration in same scope at gen_node_support.pl line 1035. Reuse the variable from the read block instead. The generated files are unchanged. Assisted-by: Claude Code --- src/backend/nodes/gen_node_support.pl | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/backend/nodes/gen_node_support.pl b/src/backend/nodes/gen_node_support.pl index df7b8e43e97..3fa4ae6b0d4 100755 --- a/src/backend/nodes/gen_node_support.pl +++ b/src/backend/nodes/gen_node_support.pl @@ -1032,10 +1032,6 @@ sub elem "; # for read fast - my $macro = - (@{ $node_type_info{$n}->{fields} } > 0) - ? 'READ_LOCALS' - : 'READ_LOCALS_NO_FIELDS'; print $rfaf " static $n * _read${n}(void)