git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7c51b7f)
In get_bc_algorithm_name, add a dummy return statement.
2022年3月23日 15:37:12 +0000 (11:37 -0400)
2022年3月23日 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


diff --git a/src/common/backup_compression.c b/src/common/backup_compression.c
index 591b97a60cd8529cd9e89808c683a88d465c7632..0650f975c448d585d7a907408b88bcfea50752ad 100644 (file)
--- a/src/common/backup_compression.c
+++ b/src/common/backup_compression.c
@@ -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 */
}
/*
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /