From: Chandler Carruth Date: Fri, 22 Dec 2017 23:29:49 +0000 (+0000) Subject: Add an explicit `LLVM_FALLTHROUGH` annotation to an intentional X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c4dbfb41a7a00efba9e3c8c58839a16e8444c110;p=clang Add an explicit `LLVM_FALLTHROUGH` annotation to an intentional fallthrough. Fixes GCC and Clang warnings about this. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@321392 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaType.cpp b/lib/Sema/SemaType.cpp index 63a4963946..2530b766f5 100644 --- a/lib/Sema/SemaType.cpp +++ b/lib/Sema/SemaType.cpp @@ -3143,6 +3143,7 @@ static void warnAboutRedundantParens(Sema &S, Declarator &D, QualType T) { case DeclaratorChunk::Paren: if (&C == &Paren) continue; + LLVM_FALLTHROUGH; case DeclaratorChunk::Pointer: StartsWithDeclaratorId = false; continue;