aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/common/toast_compression.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2021-03-21 11:50:43 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2021-03-21 11:50:43 -0400
commit9fb9691a88ae8df9bc30e0f0f72de7c96e73e125 (patch)
tree0d198d8dc41536978c38d76fbcac184cb8e56b31 /src/backend/access/common/toast_compression.c
parent96ae658e6238c5e69819fb1557c2c14a555506d8 (diff)
downloadpostgresql-9fb9691a88ae8df9bc30e0f0f72de7c96e73e125.tar.gz
postgresql-9fb9691a88ae8df9bc30e0f0f72de7c96e73e125.zip
Suppress various new compiler warnings.
Compilers that don't understand that elog(ERROR) doesn't return issued warnings here. In the cases in libpq_pipeline.c, we were not exactly helping things by failing to mark pg_fatal() as noreturn. Per buildfarm.
Diffstat (limited to 'src/backend/access/common/toast_compression.c')
-rw-r--r--src/backend/access/common/toast_compression.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/backend/access/common/toast_compression.c b/src/backend/access/common/toast_compression.c
index a6f8b79a9ed..00af1740cfa 100644
--- a/src/backend/access/common/toast_compression.c
+++ b/src/backend/access/common/toast_compression.c
@@ -135,6 +135,7 @@ lz4_compress_datum(const struct varlena *value)
{
#ifndef USE_LZ4
NO_LZ4_SUPPORT();
+ return NULL; /* keep compiler quiet */
#else
int32 valsize;
int32 len;
@@ -177,6 +178,7 @@ lz4_decompress_datum(const struct varlena *value)
{
#ifndef USE_LZ4
NO_LZ4_SUPPORT();
+ return NULL; /* keep compiler quiet */
#else
int32 rawsize;
struct varlena *result;
@@ -209,6 +211,7 @@ lz4_decompress_datum_slice(const struct varlena *value, int32 slicelength)
{
#ifndef USE_LZ4
NO_LZ4_SUPPORT();
+ return NULL; /* keep compiler quiet */
#else
int32 rawsize;
struct varlena *result;