pgsql: Silence minor compiler warnings.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Silence minor compiler warnings.
Date: 2022-02-13 18:25:26
Message-ID: E1nJJYs-0007GT-GN@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Silence minor compiler warnings.

Depending on compiler version and optimization level, we might
get a complaint that lazy_scan_heap's "freespace" is used
uninitialized.

Compilers not aware that ereport(ERROR) doesn't return complained
about bbsink_lz4_new().

Assigning "-1" to a uint64 value has unportable results; fortunately,
the value of xlogreadsegno is unimportant when xlogreadfd is -1.
(It looks to me like there is no need for xlogreadsegno to be static
in the first place, but I didn't venture to change that.)

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/302612a6c74fb16f26d094ff47e9c59cf412740c

Modified Files
--------------
src/backend/access/heap/vacuumlazy.c | 2 +-
src/backend/replication/basebackup_lz4.c | 1 +
src/bin/pg_rewind/parsexlog.c | 2 +-
3 files changed, 3 insertions(+), 2 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Thomas Munro 2022-02-13 23:54:31 pgsql: Remove REGRESS_OUTPUTDIR environment variable.
Previous Message Tomas Vondra 2022-02-13 17:08:26 Re: pgsql: Fix skip-empty-xacts with sequences in test_decoding