diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2018-01-10 16:51:58 +0100 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2018-01-24 14:50:43 +0000 |
commit | f482270432761e72b87fb368c2a379cd59b169b3 (patch) | |
tree | 11bbf09187ef36eb23c51a55e4b6e617ed4b8cfb /src/libs/3rdparty | |
parent | 66488ba0b8d8fd7111e75fc53f37af4e4f51a12e (diff) |
Introduce Q_FALLTHROUGH()
Silence g++ 7.X warnings.
Change-Id: I9d06d04b496c9ec060e13e1be6f43d8fbadb1f3b
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Diffstat (limited to 'src/libs/3rdparty')
-rw-r--r-- | src/libs/3rdparty/cplusplus/Parser.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libs/3rdparty/cplusplus/Parser.cpp b/src/libs/3rdparty/cplusplus/Parser.cpp index 16f351077a..3547041212 100644 --- a/src/libs/3rdparty/cplusplus/Parser.cpp +++ b/src/libs/3rdparty/cplusplus/Parser.cpp @@ -2565,7 +2565,7 @@ bool Parser::parseMemberSpecification(DeclarationAST *&node, ClassSpecifierAST * case T_STATIC_ASSERT: if (_languageFeatures.cxx11Enabled) CACHE_AND_RETURN(cacheKey, parseStaticAssertDeclaration(node)); - // fall-through + Q_FALLTHROUGH(); default: CACHE_AND_RETURN(cacheKey, parseSimpleDeclaration(node, declaringClass)); @@ -3830,7 +3830,7 @@ bool Parser::parseBlockDeclaration(DeclarationAST *&node) case T_STATIC_ASSERT: if (_languageFeatures.cxx11Enabled) return parseStaticAssertDeclaration(node); - // fall-through + Q_FALLTHROUGH(); default: return parseSimpleDeclaration(node); @@ -3914,7 +3914,7 @@ bool Parser::lookAtStorageClassSpecifier() const case T_CONSTEXPR: if (_languageFeatures.cxx11Enabled) return true; - // fall-through + Q_FALLTHROUGH(); default: return false; } @@ -4514,7 +4514,7 @@ bool Parser::parsePrimaryExpression(ExpressionAST *&node) case T_NULLPTR: if (_languageFeatures.cxx11Enabled) return parsePointerLiteral(node); - // fall-through + Q_FALLTHROUGH(); case T_CHAR_LITERAL: // ### FIXME don't use NumericLiteral for chars case T_WIDE_CHAR_LITERAL: |