diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2018-02-19 13:13:48 +0100 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2018-02-19 12:18:00 +0000 |
commit | c29a1b03fd0fe6cc3496a6a14c56f6ef3390b713 (patch) | |
tree | 2804fd7290bfc5e5414bf57bb4ff213859611068 | |
parent | bbeb2dc61b9206be69fc7df7e96bdff5682aae23 (diff) | |
download | qttools-c29a1b03fd0fe6cc3496a6a14c56f6ef3390b713.tar.gz |
qdoc: Add Q_FALLTHROUGH() to clangcodeparser.cpp
Silence warning by gcc 7.2.
Change-Id: Ia734d7161fccb2f700bd955dc52c904e1e31987e
Reviewed-by: Martin Smith <martin.smith@qt.io>
-rw-r--r-- | src/qdoc/clangcodeparser.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/qdoc/clangcodeparser.cpp b/src/qdoc/clangcodeparser.cpp index 77bd4454b..d04a1b46c 100644 --- a/src/qdoc/clangcodeparser.cpp +++ b/src/qdoc/clangcodeparser.cpp @@ -538,6 +538,7 @@ CXChildVisitResult ClangVisitor::visitHeader(CXCursor cursor, CXSourceLocation l case CXCursor_UnionDecl: if (fromCXString(clang_getCursorSpelling(cursor)).isEmpty()) // anonymous struct or union return CXChildVisit_Continue; + Q_FALLTHROUGH(); case CXCursor_ClassDecl: case CXCursor_ClassTemplate: { |