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>


Origin commit data
------------------
Branch: ni/coolstream
Commit: 212b6fdb72
Author: Sascha Zelzer <sascha.zelzer@gmail.com>
Date: 2019-06-14 (Fri, 14 Jun 2019)



------------------
This commit was generated by Migit
This commit is contained in:
Sascha Zelzer
2019-06-14 22:40:28 +02:00
committed by vanhofen
parent 9a0aa76a48
commit b23299b5e7

View File

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