]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Fix additional fallthrough warning
authorPeter Eisentraut <peter@eisentraut.org>
Mon, 23 Feb 2026 06:37:50 +0000 (07:37 +0100)
committerPeter Eisentraut <peter@eisentraut.org>
Mon, 23 Feb 2026 06:40:19 +0000 (07:40 +0100)
Clang warns about this one, but GCC did not.  (Apparently a bug in
GCC: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122796)

Apparently, the previous "fall through" comment was introduced
manually in commit f76892c9ff7e without the compiler actually asking
for it.

This is in preparation for enabling fallthrough warnings on Clang.

Reviewed-by: Jelte Fennema-Nio <postgres@jeltef.nl>
Discussion: https://www.postgresql.org/message-id/flat/76a8efcd-925a-4eaf-bdd1-d972cd1a32ff%40eisentraut.org

src/bin/scripts/reindexdb.c

index b15745256ffe33a323b49b6762c33560d8874789..8bab74b59171bafd6f0322e0d20f2d5ae8af7341 100644 (file)
@@ -340,7 +340,7 @@ reindex_one_database(ConnParams *cparams, ReindexType type,
                {
                        case REINDEX_SCHEMA:
                                Assert(user_list != NULL);
-                               /* fall through */
+                               pg_fallthrough;
 
                        case REINDEX_DATABASE: