pgsql: Avoid uninitialized-variable warnings from older compilers.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Avoid uninitialized-variable warnings from older compilers.
Date: 2025-10-09 14:34:05
Message-ID: E1v6riX-000qvD-04@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Avoid uninitialized-variable warnings from older compilers.

Some of the buildfarm is still unhappy with WinGetFuncArgInPartition
even after 2273fa32b. While it seems to be just very old compilers,
we can suppress the warnings and arguably make the code more readable
by not initializing these variables till closer to where they are
used. While at it, make a couple of cosmetic comment improvements.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/71540dcdcb2239d9398c586615761d5ea424aaf0

Modified Files
--------------
src/backend/executor/nodeWindowAgg.c | 34 ++++++++++++++++------------------
1 file changed, 16 insertions(+), 18 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Masahiko Sawada 2025-10-09 18:00:25 pgsql: Fix access-to-already-freed-memory issue in pgoutput.
Previous Message Richard Guo 2025-10-09 08:53:02 pgsql: Remove unnecessary include of "utils/fmgroids.h"