mirror of
https://github.com/postgres/postgres.git
synced 2025-11-22 12:22:45 +03:00
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.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user