diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2017-06-02 20:42:06 -0700 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@intel.com> | 2017-06-03 19:44:02 +0000 |
commit | 68f876f17b21ec0c95d1e487238f264b5a568c65 (patch) | |
tree | 971600f873119e142264a244b814239b0aea8e0d | |
parent | a62cfc890be99aeb84d3cfaca6ca1e09a1e81642 (diff) |
Silence GCC 7 case fallthrough warnings
Change-Id: Ia3e896da908f42939148fffd14c47fa5f5bf1897
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
-rw-r--r-- | tools/repc/moc_copy/preprocessor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/repc/moc_copy/preprocessor.cpp b/tools/repc/moc_copy/preprocessor.cpp index f680b3b..e24e052 100644 --- a/tools/repc/moc_copy/preprocessor.cpp +++ b/tools/repc/moc_copy/preprocessor.cpp @@ -315,7 +315,7 @@ Symbols Preprocessor::tokenize(const QByteArray& input, int lineNum, Preprocesso ++data; } token = WHITESPACE; // one comment, one whitespace - // fall through; + Q_FALLTHROUGH(); // fall through; case WHITESPACE: if (column == 1) column = 0; @@ -476,7 +476,7 @@ Symbols Preprocessor::tokenize(const QByteArray& input, int lineNum, Preprocesso ++data; } token = PP_WHITESPACE; // one comment, one whitespace - // fall through; + Q_FALLTHROUGH(); // fall through; case PP_WHITESPACE: while (*data && (*data == ' ' || *data == '\t')) ++data; |