Skip to content

Commit 7c979e8

Browse files
saschazelzercdunn2001
authored andcommitted
Suppress implicit-fallthrough warnings from GCC 7 (open-source-parsers#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 open-source-parsers#676
1 parent c469326 commit 7c979e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib_json/json_reader.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1237,7 +1237,7 @@ bool OurReader::readToken(Token& token) {
12371237
token.type_ = tokenString;
12381238
ok = readStringSingleQuote();
12391239
break;
1240-
} // else continue
1240+
} // else fall through
12411241
case '/':
12421242
token.type_ = tokenComment;
12431243
ok = readComment();

0 commit comments

Comments
 (0)