mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-10-05 01:36:56 +02:00
Suppress -Wimplicit-fallthrough warnings in new jsonpath code.
Per buildfarm. See commit 41c912cad
for precedent.
This commit is contained in:
parent
f27314ff9a
commit
20f7c3d560
@ -330,7 +330,7 @@ flattenJsonPathParseItem(StringInfo buf, JsonPathParseItem *item,
|
|||||||
break;
|
break;
|
||||||
case jpiFilter:
|
case jpiFilter:
|
||||||
argNestingLevel++;
|
argNestingLevel++;
|
||||||
/* fall through */
|
/* FALLTHROUGH */
|
||||||
case jpiIsUnknown:
|
case jpiIsUnknown:
|
||||||
case jpiNot:
|
case jpiNot:
|
||||||
case jpiPlus:
|
case jpiPlus:
|
||||||
@ -439,10 +439,13 @@ alignStringInfoInt(StringInfo buf)
|
|||||||
{
|
{
|
||||||
case 3:
|
case 3:
|
||||||
appendStringInfoCharMacro(buf, 0);
|
appendStringInfoCharMacro(buf, 0);
|
||||||
|
/* FALLTHROUGH */
|
||||||
case 2:
|
case 2:
|
||||||
appendStringInfoCharMacro(buf, 0);
|
appendStringInfoCharMacro(buf, 0);
|
||||||
|
/* FALLTHROUGH */
|
||||||
case 1:
|
case 1:
|
||||||
appendStringInfoCharMacro(buf, 0);
|
appendStringInfoCharMacro(buf, 0);
|
||||||
|
/* FALLTHROUGH */
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -849,7 +852,7 @@ jspInitByBuffer(JsonPathItem *v, char *base, int32 pos)
|
|||||||
case jpiString:
|
case jpiString:
|
||||||
case jpiVariable:
|
case jpiVariable:
|
||||||
read_int32(v->content.value.datalen, base, pos);
|
read_int32(v->content.value.datalen, base, pos);
|
||||||
/* follow next */
|
/* FALLTHROUGH */
|
||||||
case jpiNumeric:
|
case jpiNumeric:
|
||||||
case jpiBool:
|
case jpiBool:
|
||||||
v->content.value.data = base + pos;
|
v->content.value.data = base + pos;
|
||||||
|
Loading…
Reference in New Issue
Block a user