diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2019-03-16 12:34:46 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2019-03-16 12:34:46 -0400 |
commit | 20f7c3d5606254d8870697f15fd7a7b4e602e1e1 (patch) | |
tree | 2b6bb9873ebf305f023169417cc11b848fbf4569 /src/backend/utils/adt/jsonpath.c | |
parent | f27314ff9a0eb60b75bb576c3629c8849f7698c1 (diff) | |
download | postgresql-20f7c3d5606254d8870697f15fd7a7b4e602e1e1.tar.gz postgresql-20f7c3d5606254d8870697f15fd7a7b4e602e1e1.zip |
Suppress -Wimplicit-fallthrough warnings in new jsonpath code.
Per buildfarm. See commit 41c912cad for precedent.
Diffstat (limited to 'src/backend/utils/adt/jsonpath.c')
-rw-r--r-- | src/backend/utils/adt/jsonpath.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/backend/utils/adt/jsonpath.c b/src/backend/utils/adt/jsonpath.c index 2ad1318d33e..fb9d85213d4 100644 --- a/src/backend/utils/adt/jsonpath.c +++ b/src/backend/utils/adt/jsonpath.c @@ -330,7 +330,7 @@ flattenJsonPathParseItem(StringInfo buf, JsonPathParseItem *item, break; case jpiFilter: argNestingLevel++; - /* fall through */ + /* FALLTHROUGH */ case jpiIsUnknown: case jpiNot: case jpiPlus: @@ -439,10 +439,13 @@ alignStringInfoInt(StringInfo buf) { case 3: appendStringInfoCharMacro(buf, 0); + /* FALLTHROUGH */ case 2: appendStringInfoCharMacro(buf, 0); + /* FALLTHROUGH */ case 1: appendStringInfoCharMacro(buf, 0); + /* FALLTHROUGH */ default: break; } @@ -849,7 +852,7 @@ jspInitByBuffer(JsonPathItem *v, char *base, int32 pos) case jpiString: case jpiVariable: read_int32(v->content.value.datalen, base, pos); - /* follow next */ + /* FALLTHROUGH */ case jpiNumeric: case jpiBool: v->content.value.data = base + pos; |