mirror of
https://github.com/postgres/postgres.git
synced 2025-11-24 00:23:06 +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:
@@ -487,6 +487,7 @@ toast_decompress_datum(struct varlena *attr)
|
||||
return lz4_decompress_datum(attr);
|
||||
default:
|
||||
elog(ERROR, "invalid compression method id %d", cmid);
|
||||
return NULL; /* keep compiler quiet */
|
||||
}
|
||||
}
|
||||
|
||||
@@ -518,6 +519,7 @@ toast_decompress_datum_slice(struct varlena *attr, int32 slicelength)
|
||||
return lz4_decompress_datum_slice(attr, slicelength);
|
||||
default:
|
||||
elog(ERROR, "invalid compression method id %d", cmid);
|
||||
return NULL; /* keep compiler quiet */
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user