r213345 - SemaInit.cpp: Fix a warning with -Asserts. [-Wunused-variable]

NAKAMURA Takumi geek4civic at gmail.com
Thu Jul 17 18:26:36 PDT 2014


Author: chapuni
Date: Thu Jul 17 20:26:35 2014
New Revision: 213345

URL: http://llvm.org/viewvc/llvm-project?rev=213345&view=rev
Log:
SemaInit.cpp: Fix a warning with -Asserts. [-Wunused-variable]

Modified:
    cfe/trunk/lib/Sema/SemaInit.cpp

Modified: cfe/trunk/lib/Sema/SemaInit.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaInit.cpp?rev=213345&r1=213344&r2=213345&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaInit.cpp (original)
+++ cfe/trunk/lib/Sema/SemaInit.cpp Thu Jul 17 20:26:35 2014
@@ -919,6 +919,7 @@ void InitListChecker::CheckSubElementTyp
     // 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;





More information about the cfe-commits mailing list