0001-Remove-useless-fallthrough-annotation.patch

text/plain

Filename: 0001-Remove-useless-fallthrough-annotation.patch
Type: text/plain
Part: 0
Message: enable fallthrough warnings on clang

Patch

Format: format-patch
Series: patch 0001
Subject: Remove useless fallthrough annotation
File+
src/backend/postmaster/postmaster.c 0 1
From a88b137a1b1a5ff488f98414d5430976e3128aa9 Mon Sep 17 00:00:00 2001
From: Peter Eisentraut <peter@eisentraut.org>
Date: Tue, 20 Jan 2026 11:35:16 +0100
Subject: [PATCH 1/5] Remove useless fallthrough annotation

A fallthrough attribute after the last case is a constraint violation
in C23, and clang warns about it (not about this comment, but if we
changed it to an attribute).  Remove it.  (There was apparently never
anything after this to fall through to, even in the first commit
da07a1e8565.)
---
 src/backend/postmaster/postmaster.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/backend/postmaster/postmaster.c b/src/backend/postmaster/postmaster.c
index d6133bfebc6..70c7645582e 100644
--- a/src/backend/postmaster/postmaster.c
+++ b/src/backend/postmaster/postmaster.c
@@ -4229,7 +4229,6 @@ bgworker_should_start_now(BgWorkerStartTime start_time)
 		case PM_INIT:
 			if (start_time == BgWorkerStart_PostmasterStart)
 				return true;
-			/* fall through */
 	}
 
 	return false;

base-commit: 7ebb64c557570647e3fcf6f5f1549e882ed26489
-- 
2.52.0