diff --git a/jsmn.h b/jsmn.h index b95368a..cb27ca1 100644 --- a/jsmn.h +++ b/jsmn.h @@ -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;