jsoncpp: Suppress implicit-fallthrough warnings from GCC 7

GCC 7, when compiling with -Wimplicit-fallthrough=1 or higher, issues a warning which can be suppressed using a comment
that matches certain regular expressions. The comment change does just that: signal to GCC that the fall through is intentional.

Signed-off-by: GetAway <get-away@t-online.de>
This commit is contained in:
Sascha Zelzer
2019-06-13 22:10:12 +02:00
committed by GetAway
parent edd43ef5e9
commit e9aab3054d

View File

@@ -1454,8 +1454,7 @@ bool OurReader::readToken(Token& token) {
token.type_ = tokenString;
ok = readStringSingleQuote();
break;
} // else continue
/* is a break missing here? or is this correct? */
} // else fall through
case '/':
token.type_ = tokenComment;
ok = readComment();