Suppress implicit-fallthrough warnings from GCC 7 (#697)

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.

Fixes #676
This commit is contained in:
Sascha Zelzer 2017-11-16 20:13:55 +01:00 committed by Christopher Dunn
parent c469326b47
commit 7c979e8661

View File

@ -1237,7 +1237,7 @@ bool OurReader::readToken(Token& token) {
token.type_ = tokenString;
ok = readStringSingleQuote();
break;
} // else continue
} // else fall through
case '/':
token.type_ = tokenComment;
ok = readComment();