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)
llvm-svn: 213345

clang/lib/Sema/SemaInit.cpp

index 3ed1d7f..30471fb 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;