From 9e7299c68bd0ab3ece3ac429d14583997cb5aa8e Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Fri, 18 Jul 2014 01:26:35 +0000 Subject: [PATCH] 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 --- lib/Sema/SemaInit.cpp | 1 + 1 file changed, 1 insertion(+) 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; -- 2.50.1