From 7c979e86610f48fa50e740854bcfce170b50fb46 Mon Sep 17 00:00:00 2001 From: Sascha Zelzer Date: Thu, 16 Nov 2017 20:13:55 +0100 Subject: [PATCH] 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 --- src/lib_json/json_reader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib_json/json_reader.cpp b/src/lib_json/json_reader.cpp index b4c4dcd..eb30843 100644 --- a/src/lib_json/json_reader.cpp +++ b/src/lib_json/json_reader.cpp @@ -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();