diff options
| author | Peter Eisentraut | 2026-02-23 06:37:50 +0000 |
|---|---|---|
| committer | Peter Eisentraut | 2026-02-23 06:40:19 +0000 |
| commit | 3a63b76571ba253e2784ba34377cdcbdb8ad6796 (patch) | |
| tree | a3168cabfb87b701ca0366a73340b5e1df0ed398 /src/pl | |
| parent | 308622edf1743aa407df0044cc4529aed8de15e6 (diff) | |
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
Diffstat (limited to 'src/pl')
| -rw-r--r-- | src/pl/plpgsql/src/pl_comp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pl/plpgsql/src/pl_comp.c b/src/pl/plpgsql/src/pl_comp.c index 7d648c941c0..5ecc7766757 100644 --- a/src/pl/plpgsql/src/pl_comp.c +++ b/src/pl/plpgsql/src/pl_comp.c @@ -2333,6 +2333,7 @@ plpgsql_add_initdatums(int **varnos) case PLPGSQL_DTYPE_VAR: case PLPGSQL_DTYPE_REC: (*varnos)[n++] = plpgsql_Datums[i]->dno; + break; default: break; |
