pgsql: Silence uninitialized-variable warning.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Silence uninitialized-variable warning.
Date: 2021-11-07 17:18:25
Message-ID: E1mjloH-0000od-5s@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Silence uninitialized-variable warning.

Quite a few buildfarm animals are warning about this, and lapwing
is actually failing (because -Werror). It's a false positive AFAICS,
so no need to do more than zero the variable to start with.

Discussion: https://postgr.es/m/YYXJnUxgw9dZKxlX@paquier.xyz

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/c3ec4f8fe867807613c08fe16789434ab1a74a15

Modified Files
--------------
src/backend/access/transam/xlog.c | 3 +++
1 file changed, 3 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2021-11-07 17:23:25 Re: pgsql: Change ThisTimeLineID from a global variable to a local variable
Previous Message Tom Lane 2021-11-07 16:34:09 pgsql: contrib/sslinfo needs a fix too to make hamerkop happy.