From: Peter Eisentraut Date: Mon, 23 Feb 2026 06:37:50 +0000 (+0100) Subject: Fix additional fallthrough warning X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3f7a0e1e55eff9d96c6d4ac8aa03895de21e06bc;p=thirdparty%2Fpostgresql.git 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 --- 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: