Skip to content
Permalink
Browse files
Added /*fall through*/ comments for fix warnings
  • Loading branch information
dlepikhova committed Oct 12, 2020
1 parent 09f67b2 commit 15e66cdeb1ca2feec28c02f54759dbbd340f98f0
Showing with 10 additions and 3 deletions.
  1. +1 −0 jsquery_extract.c
  2. +2 −0 jsquery_io.c
  3. +7 −3 jsquery_support.c
@@ -178,6 +178,7 @@ recursiveExtract(JsQueryItem *jsq, bool not, bool indirect, PathItem *path)
*result->exactValue = e;
return result;
}
/* fall through */
/* jqiEqual with jqiArray follows */
case jqiIn:
case jqiOverlap:
@@ -44,6 +44,7 @@ flattenJsQueryParseItem(StringInfo buf, JsQueryParseItem *item, bool onlyCurrent
case jqiKey:
if (onlyCurrentInPath)
elog(ERROR,"Array length should be last in path");
/* fall through */
case jqiString:
appendBinaryStringInfo(buf, (char*)&item->string.len, sizeof(item->string.len));
appendBinaryStringInfo(buf, item->string.val, item->string.len);
@@ -239,6 +240,7 @@ printJsQueryItem(StringInfo buf, JsQueryItem *v, bool inKey, bool printBracketes
case jqiKey:
if (inKey)
appendStringInfoChar(buf, '.');
/* fall through */
/* follow next */
case jqiString:
escape_json(buf, jsqGetString(v, NULL));
@@ -33,10 +33,13 @@ alignStringInfoInt(StringInfo buf)
{
case 3:
appendStringInfoCharMacro(buf, 0);
/* fall through */
case 2:
appendStringInfoCharMacro(buf, 0);
/* fall through */
case 1:
appendStringInfoCharMacro(buf, 0);
/* fall through */
default:
break;
}
@@ -60,9 +63,9 @@ jsqInitByBuffer(JsQueryItem *v, char *base, int32 pos)

switch(INTALIGN(pos) - pos)
{
case 3: pos++;
case 2: pos++;
case 1: pos++;
case 3: pos++; /* fall through */
case 2: pos++; /* fall through */
case 1: pos++; /* fall through */
default: break;
}

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

0 comments on commit 15e66cd

Please sign in to comment.