Quieten a warning from the compiler

gcc (and others) like a default case for switch statement,
even if it is empty.
master
Sanjeev Gupta 5 years ago
parent fdcef3ebf8
commit cdcfaafa49

@ -154,6 +154,9 @@ static int jsmn_parse_primitive(jsmn_parser *parser, const char *js,
case ']': case ']':
case '}': case '}':
goto found; goto found;
default:
/* to quiet a warning from gcc*/
break;
} }
if (js[parser->pos] < 32 || js[parser->pos] >= 127) { if (js[parser->pos] < 32 || js[parser->pos] >= 127) {
parser->pos = start; parser->pos = start;

Loading…
Cancel
Save