summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane2020-05-16 15:07:48 +0000
committerTom Lane2020-05-16 15:07:48 +0000
commit93d76541520ce8c2d47d422c6c3f46648b6449f2 (patch)
tree6df255657a0d06c276ddf69db092a7b7f7351a80
parentcc7924c81b92f227bd074b7626fc84e54f5b9e2e (diff)
Silence -Wimplicit-fallthrough warnings in pg_bsd_indent.
Since the recommended build method uses Postgres' preferred CFLAGS, and those now include -Wimplicit-fallthrough, we now see these warnings where we did not before. Michael Paquier Discussion: https://postgr.es/m/[email protected]
-rw-r--r--indent.c1
-rw-r--r--parse.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/indent.c b/indent.c
index 9faf57a..5da3401 100644
--- a/indent.c
+++ b/indent.c
@@ -917,6 +917,7 @@ check_type:
case structure:
if (ps.p_l_follow > 0)
goto copy_id;
+ /* FALLTHROUGH */
case decl: /* we have a declaration type (int, etc.) */
parse(decl); /* let parser worry about indentation */
if (ps.last_token == rparen && ps.tos <= 1) {
diff --git a/parse.c b/parse.c
index a51eb8b..bf6b169 100644
--- a/parse.c
+++ b/parse.c
@@ -100,6 +100,7 @@ parse(int tk) /* tk: the code for the construct scanned */
*/
ps.i_l_follow = ps.il[ps.tos--];
/* the rest is the same as for dolit and forstmt */
+ /* FALLTHROUGH */
case dolit: /* 'do' */
case forstmt: /* for (...) */
ps.p_stack[++ps.tos] = tk;