Fix additional fallthrough warnings from clang
Peter Eisentraut <peter@eisentraut.org>
Author:
Peter Eisentraut <peter@eisentraut.org>
Date: 2026-02-23T06:40:19Z
Releases:
19 (unreleased)
Fix additional fallthrough warnings from clang Clang warns if falling through to a case or default label that is immediately followed by break, but GCC does not (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91432). (MSVC also warns about the equivalent code in C++.) 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
Files
| Path | Change | +/− |
|---|---|---|
| contrib/isn/isn.c | modified | +1 −0 |
| contrib/pg_overexplain/pg_overexplain.c | modified | +1 −0 |
| src/backend/access/transam/xlogrecovery.c | modified | +1 −0 |
| src/backend/replication/logical/decode.c | modified | +1 −2 |
| src/backend/tcop/dest.c | modified | +1 −0 |
| src/backend/utils/mb/conversion_procs/euc_tw_and_big5/big5.c | modified | +1 −0 |
| src/pl/plpgsql/src/pl_comp.c | modified | +1 −0 |
| src/tools/pg_bsd_indent/indent.c | modified | +1 −0 |
Discussion
- enable fallthrough warnings on clang 7 messages · 2026-01-20 → 2026-04-07