]> granicus.if.org Git - clang/commitdiff
SemaInit.cpp: Fix a warning with -Asserts. [-Wunused-variable]
authorNAKAMURA Takumi <geek4civic@gmail.com>
Fri, 18 Jul 2014 01:26:35 +0000 (01:26 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Fri, 18 Jul 2014 01:26:35 +0000 (01:26 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213345 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaInit.cpp

index 3ed1d7f1f66ccfb64903e2b5d362e0e00ff0c8f2..30471fbc9ad1c3386178fe017206bb4bddef373a 100644 (file)
@@ -919,6 +919,7 @@ void InitListChecker::CheckSubElementType(const InitializedEntity &Entity,
     // that we've already checked once.
     assert(SemaRef.Context.hasSameType(VIE->getType(), ElemType) &&
            "found implicit initialization for the wrong type");
+    (void)VIE;
     if (!VerifyOnly)
       UpdateStructuredListElement(StructuredList, StructuredIndex, expr);
     ++Index;