From 76834c02c4d1349ecb42e2e0ae3f22c4aa1612a4 Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Fri, 2 Jun 2017 22:57:31 -0700 Subject: 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 --- src/qdoc/cppcodeparser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/qdoc/cppcodeparser.cpp') 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; -- cgit v1.2.1