diff options
author | Tom Lane | 2022-02-13 18:06:55 +0000 |
---|---|---|
committer | Tom Lane | 2022-02-13 18:06:55 +0000 |
commit | 302612a6c74fb16f26d094ff47e9c59cf412740c (patch) | |
tree | a1d249e555689fc195f1085782b5a34ad2655d69 /src/backend/replication/basebackup_lz4.c | |
parent | f79c94f39df092dfe3371257140ec76bba40bfb6 (diff) |
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.)
Diffstat (limited to 'src/backend/replication/basebackup_lz4.c')
-rw-r--r-- | src/backend/replication/basebackup_lz4.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/backend/replication/basebackup_lz4.c b/src/backend/replication/basebackup_lz4.c index 8730ee89dc7..d26032783cf 100644 --- a/src/backend/replication/basebackup_lz4.c +++ b/src/backend/replication/basebackup_lz4.c @@ -66,6 +66,7 @@ bbsink_lz4_new(bbsink *next, int compresslevel) ereport(ERROR, (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), errmsg("lz4 compression is not supported by this build"))); + return NULL; /* keep compiler quiet */ #else bbsink_lz4 *sink; |