pgsql: Zero initialize uses of instr_time about to trigger compiler war

From: Andres Freund <andres(at)anarazel(dot)de>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Zero initialize uses of instr_time about to trigger compiler war
Date: 2023-01-21 05:25:19
Message-ID: E1pJ6NT-004jOG-By@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Zero initialize uses of instr_time about to trigger compiler warnings

These are all not necessary from a correctness POV. However, in the near
future instr_time will be simplified to an int64, at which point gcc would
otherwise start to warn about the changed places.

Reviewed-by: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Discussion: https://postgr.es/m/20230116023639.rn36vf6ajqmfciua@awork3.anarazel.de

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/25b2aba0c3a501e2af9579f1b629f155544935db

Modified Files
--------------
src/backend/access/transam/xlog.c | 4 ++++
src/backend/storage/buffer/bufmgr.c | 4 ++++
src/backend/storage/file/buffile.c | 4 ++++
src/backend/storage/ipc/latch.c | 2 ++
src/bin/psql/common.c | 6 ++++++
5 files changed, 20 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Noah Misch 2023-01-21 14:12:19 pgsql: Reject CancelRequestPacket having unexpected length.
Previous Message Michael Paquier 2023-01-21 03:21:01 pgsql: Rework format of comments in headers for nodes