summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2018-02-19 13:13:48 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2018-02-19 12:18:00 +0000
commitc29a1b03fd0fe6cc3496a6a14c56f6ef3390b713 (patch)
tree2804fd7290bfc5e5414bf57bb4ff213859611068
parentbbeb2dc61b9206be69fc7df7e96bdff5682aae23 (diff)
downloadqttools-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.cpp1
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: {