From cdcfaafa49ffe5661978292a55cec7fd459571e4 Mon Sep 17 00:00:00 2001 From: Sanjeev Gupta Date: Sat, 13 Jul 2019 22:01:56 +0800 Subject: [PATCH] Quieten a warning from the compiler gcc (and others) like a default case for switch statement, even if it is empty. --- jsmn.h | 3 +++ 1 file changed, 3 insertions(+) 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;