From 3f7a0e1e55eff9d96c6d4ac8aa03895de21e06bc Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Mon, 23 Feb 2026 07:37:50 +0100 Subject: [PATCH] Fix additional fallthrough warning 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 Discussion: https://www.postgresql.org/message-id/flat/76a8efcd-925a-4eaf-bdd1-d972cd1a32ff%40eisentraut.org --- src/bin/scripts/reindexdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/scripts/reindexdb.c b/src/bin/scripts/reindexdb.c index b15745256ff..8bab74b5917 100644 --- a/src/bin/scripts/reindexdb.c +++ b/src/bin/scripts/reindexdb.c @@ -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: