pg_basebackup: Add a dummy return to bbsink_gzip_new().
authorRobert Haas
Thu, 27 Jan 2022 19:20:18 +0000 (14:20 -0500)
committerRobert Haas
Thu, 27 Jan 2022 19:20:18 +0000 (14:20 -0500)
Apparently, this is needed to avoid warnings on MVCC.

David Rowley

Discussion: http://postgr.es/m/CAApHDvosHkgyo_PZs7CSB4Kgs2ey4FdmFpcK0N_QOci9DJ=wnw@mail.gmail.com

src/backend/replication/basebackup_gzip.c

index 1e58382fa08f2079a0cad7f9223a61cd99b6ccda..b66d3da7a3f721337d2b0540ae2fd7928554be0c 100644 (file)
@@ -66,6 +66,7 @@ bbsink_gzip_new(bbsink *next, int compresslevel)
    ereport(ERROR,
            (errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
             errmsg("gzip compression is not supported by this build")));
+   return NULL;                /* keep compiler quiet */
 #else
    bbsink_gzip *sink;