From: NAKAMURA Takumi Date: Fri, 18 Jul 2014 01:26:35 +0000 (+0000) Subject: SemaInit.cpp: Fix a warning with -Asserts. [-Wunused-variable] X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9e7299c68bd0ab3ece3ac429d14583997cb5aa8e;p=clang SemaInit.cpp: Fix a warning with -Asserts. [-Wunused-variable] git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213345 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaInit.cpp b/lib/Sema/SemaInit.cpp index 3ed1d7f1f6..30471fbc9a 100644 --- a/lib/Sema/SemaInit.cpp +++ b/lib/Sema/SemaInit.cpp @@ -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;