Skip to content

Commit

Permalink
Quieten a warning from the compiler
Browse files Browse the repository at this point in the history
gcc (and others) like a default case for switch statement,
even if it is empty.
ghane committed Jul 13, 2019
1 parent fdcef3e commit cdcfaaf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions jsmn.h
Original file line number Diff line number Diff line change
@@ -154,6 +154,9 @@ static int jsmn_parse_primitive(jsmn_parser *parser, const char *js,
case ']':
case '}':
goto found;
default:
/* to quiet a warning from gcc*/
break;
}
if (js[parser->pos] < 32 || js[parser->pos] >= 127) {
parser->pos = start;

0 comments on commit cdcfaaf

Please sign in to comment.