]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Silence minor compiler warnings.
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 13 Feb 2022 18:06:55 +0000 (13:06 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 13 Feb 2022 18:06:55 +0000 (13:06 -0500)
commit302612a6c74fb16f26d094ff47e9c59cf412740c
treea1d249e555689fc195f1085782b5a34ad2655d69
parentf79c94f39df092dfe3371257140ec76bba40bfb6
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.)
src/backend/access/heap/vacuumlazy.c
src/backend/replication/basebackup_lz4.c
src/bin/pg_rewind/parsexlog.c