pgsql: Avoid uninitialized-variable warnings from older compilers. - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Avoid uninitialized-variable warnings from older compilers.
Date
Msg-id E1v6riX-000qvD-04@gemulon.postgresql.org
Whole thread Raw
List 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(-)


pgsql-committers by date:

Previous
From: Richard Guo
Date:
Subject: pgsql: Fix comment in eager_aggregate.sql
Next
From: Masahiko Sawada
Date:
Subject: pgsql: Fix access-to-already-freed-memory issue in pgoutput.