0005-Fix-additional-fallthrough-warning.patch

text/plain

Filename: 0005-Fix-additional-fallthrough-warning.patch
Type: text/plain
Part: 4
Message: enable fallthrough warnings on clang

Patch

Format: format-patch
Series: patch 0005
Subject: Fix additional fallthrough warning
File+
src/bin/scripts/reindexdb.c 1 1
From c426251927410e80eec4c42ff60b802b616b15a3 Mon Sep 17 00:00:00 2001
From: Peter Eisentraut <peter@eisentraut.org>
Date: Tue, 20 Jan 2026 11:35:16 +0100
Subject: [PATCH 5/5] 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.
---
 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:
 
-- 
2.52.0