diff options
author | Tom Lane | 2020-05-16 15:07:48 +0000 |
---|---|---|
committer | Tom Lane | 2020-05-16 15:07:48 +0000 |
commit | 93d76541520ce8c2d47d422c6c3f46648b6449f2 (patch) | |
tree | 6df255657a0d06c276ddf69db092a7b7f7351a80 | |
parent | cc7924c81b92f227bd074b7626fc84e54f5b9e2e (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.c | 1 | ||||
-rw-r--r-- | parse.c | 1 |
2 files changed, 2 insertions, 0 deletions
@@ -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) { @@ -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; |