Skip to content

Commit 20f7c3d

Browse files
committed
Suppress -Wimplicit-fallthrough warnings in new jsonpath code.
Per buildfarm. See commit 41c912c for precedent.
1 parent f27314f commit 20f7c3d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/backend/utils/adt/jsonpath.c

+5-2
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ flattenJsonPathParseItem(StringInfo buf, JsonPathParseItem *item,
330330
break;
331331
case jpiFilter:
332332
argNestingLevel++;
333-
/* fall through */
333+
/* FALLTHROUGH */
334334
case jpiIsUnknown:
335335
case jpiNot:
336336
case jpiPlus:
@@ -439,10 +439,13 @@ alignStringInfoInt(StringInfo buf)
439439
{
440440
case 3:
441441
appendStringInfoCharMacro(buf, 0);
442+
/* FALLTHROUGH */
442443
case 2:
443444
appendStringInfoCharMacro(buf, 0);
445+
/* FALLTHROUGH */
444446
case 1:
445447
appendStringInfoCharMacro(buf, 0);
448+
/* FALLTHROUGH */
446449
default:
447450
break;
448451
}
@@ -849,7 +852,7 @@ jspInitByBuffer(JsonPathItem *v, char *base, int32 pos)
849852
case jpiString:
850853
case jpiVariable:
851854
read_int32(v->content.value.datalen, base, pos);
852-
/* follow next */
855+
/* FALLTHROUGH */
853856
case jpiNumeric:
854857
case jpiBool:
855858
v->content.value.data = base + pos;

0 commit comments

Comments
 (0)