Skip to content

Commit 15e66cd

Browse files
committed
Added /*fall through*/ comments for fix warnings
1 parent 09f67b2 commit 15e66cd

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

jsquery_extract.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ recursiveExtract(JsQueryItem *jsq, bool not, bool indirect, PathItem *path)
178178
*result->exactValue = e;
179179
return result;
180180
}
181+
/* fall through */
181182
/* jqiEqual with jqiArray follows */
182183
case jqiIn:
183184
case jqiOverlap:

jsquery_io.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ flattenJsQueryParseItem(StringInfo buf, JsQueryParseItem *item, bool onlyCurrent
4444
case jqiKey:
4545
if (onlyCurrentInPath)
4646
elog(ERROR,"Array length should be last in path");
47+
/* fall through */
4748
case jqiString:
4849
appendBinaryStringInfo(buf, (char*)&item->string.len, sizeof(item->string.len));
4950
appendBinaryStringInfo(buf, item->string.val, item->string.len);
@@ -239,6 +240,7 @@ printJsQueryItem(StringInfo buf, JsQueryItem *v, bool inKey, bool printBracketes
239240
case jqiKey:
240241
if (inKey)
241242
appendStringInfoChar(buf, '.');
243+
/* fall through */
242244
/* follow next */
243245
case jqiString:
244246
escape_json(buf, jsqGetString(v, NULL));

jsquery_support.c

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,13 @@ alignStringInfoInt(StringInfo buf)
3333
{
3434
case 3:
3535
appendStringInfoCharMacro(buf, 0);
36+
/* fall through */
3637
case 2:
3738
appendStringInfoCharMacro(buf, 0);
39+
/* fall through */
3840
case 1:
3941
appendStringInfoCharMacro(buf, 0);
42+
/* fall through */
4043
default:
4144
break;
4245
}
@@ -60,9 +63,9 @@ jsqInitByBuffer(JsQueryItem *v, char *base, int32 pos)
6063

6164
switch(INTALIGN(pos) - pos)
6265
{
63-
case 3: pos++;
64-
case 2: pos++;
65-
case 1: pos++;
66+
case 3: pos++; /* fall through */
67+
case 2: pos++; /* fall through */
68+
case 1: pos++; /* fall through */
6669
default: break;
6770
}
6871

@@ -86,6 +89,7 @@ jsqInitByBuffer(JsQueryItem *v, char *base, int32 pos)
8689
case jqiKey:
8790
case jqiString:
8891
read_int32(v->value.datalen, base, pos);
92+
/* fall through */
8993
/* follow next */
9094
case jqiNumeric:
9195
case jqiBool:

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy