diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2017-06-02 22:57:31 -0700 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@intel.com> | 2017-06-04 01:57:56 +0000 |
commit | 76834c02c4d1349ecb42e2e0ae3f22c4aa1612a4 (patch) | |
tree | 407e8947edf5897d9f6799b4375943a4431623de /src/qdoc/cppcodeparser.cpp | |
parent | a9227776e05cd21f362b365eee73ab9c7b9f4bd6 (diff) | |
download | qttools-76834c02c4d1349ecb42e2e0ae3f22c4aa1612a4.tar.gz |
Fix GCC 7 warnings about unmarked case statement fallthroughs
doc.cpp:632:39: error: this statement may fall through [-Werror=implicit-fallthrough=]
Change-Id: Ia3e896da908f42939148fffd14c48709a6772552
Reviewed-by: Martin Smith <martin.smith@qt.io>
Diffstat (limited to 'src/qdoc/cppcodeparser.cpp')
-rw-r--r-- | src/qdoc/cppcodeparser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qdoc/cppcodeparser.cpp b/src/qdoc/cppcodeparser.cpp index b67520600..a819026d8 100644 --- a/src/qdoc/cppcodeparser.cpp +++ b/src/qdoc/cppcodeparser.cpp @@ -1431,8 +1431,8 @@ bool CppCodeParser::matchFunctionDecl(Aggregate *parent, matched_static = true; break; case Tok_QT_DEPRECATED: - // no break here. matched_QT_DEPRECATED = true; + Q_FALLTHROUGH(); // no break here. case Tok_QT_COMPAT: matched_compat = true; break; |