Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit15e66cd

Browse files
committed
Added /*fall through*/ comments for fix warnings
1 parent09f67b2 commit15e66cd

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
returnresult;
180180
}
181+
/* fall through */
181182
/* jqiEqual with jqiArray follows */
182183
casejqiIn:
183184
casejqiOverlap:

‎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
casejqiKey:
4545
if (onlyCurrentInPath)
4646
elog(ERROR,"Array length should be last in path");
47+
/* fall through */
4748
casejqiString:
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
casejqiKey:
240241
if (inKey)
241242
appendStringInfoChar(buf,'.');
243+
/* fall through */
242244
/* follow next */
243245
casejqiString:
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
case3:
3535
appendStringInfoCharMacro(buf,0);
36+
/* fall through */
3637
case2:
3738
appendStringInfoCharMacro(buf,0);
39+
/* fall through */
3840
case1:
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-
case3:pos++;
64-
case2:pos++;
65-
case1:pos++;
66+
case3:pos++;/* fall through */
67+
case2:pos++;/* fall through */
68+
case1:pos++;/* fall through */
6669
default:break;
6770
}
6871

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp