Merge pull request #162 from ghane/Case-Warning

Add default case for a switch statement to avoid complaints from the compiler.
master
P4t 5 years ago committed by GitHub
commit 85695f3d59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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;

Loading…
Cancel
Save