In get_bc_algorithm_name, add a dummy return statement.
authorRobert Haas <rhaas@postgresql.org>
Wed, 23 Mar 2022 15:37:12 +0000 (11:37 -0400)
committerRobert Haas <rhaas@postgresql.org>
Wed, 23 Mar 2022 15:37:12 +0000 (11:37 -0400)
This code shouldn't be reached, but having it here might avoid a
compiler warning.

Per CI complaint from Andres Freund.

Discussion: http://postgr.es/m/C6A7643A-582B-47F7-A03D-01736BC0349B@anarazel.de

src/common/backup_compression.c

index 591b97a60cd8529cd9e89808c683a88d465c7632..0650f975c448d585d7a907408b88bcfea50752ad 100644 (file)
@@ -72,6 +72,7 @@ get_bc_algorithm_name(bc_algorithm algorithm)
            /* no default, to provoke compiler warnings if values are added */
    }
    Assert(false);
+   return "???";   /* placate compiler */
 }
 
 /*