]> granicus.if.org Git - clang/commitdiff
Add an explicit `LLVM_FALLTHROUGH` annotation to an intentional
authorChandler Carruth <chandlerc@gmail.com>
Fri, 22 Dec 2017 23:29:49 +0000 (23:29 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Fri, 22 Dec 2017 23:29:49 +0000 (23:29 +0000)
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

index 63a4963946ebcdda25e47069be100355e38beda0..2530b766f5f724595fdfbd664e44d1903d74c64e 100644 (file)
@@ -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;