From c4dbfb41a7a00efba9e3c8c58839a16e8444c110 Mon Sep 17 00:00:00 2001 From: Chandler Carruth Date: Fri, 22 Dec 2017 23:29:49 +0000 Subject: [PATCH] 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 --- lib/Sema/SemaType.cpp | 1 + 1 file changed, 1 insertion(+) 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; -- 2.50.1