]> granicus.if.org Git - clang/commitdiff
Silence -Wunused-variable in -Asserts build
authorMatt Beaumont-Gay <matthewbg@google.com>
Mon, 2 Apr 2012 19:05:35 +0000 (19:05 +0000)
committerMatt Beaumont-Gay <matthewbg@google.com>
Mon, 2 Apr 2012 19:05:35 +0000 (19:05 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@153885 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaInit.cpp

index f748db943a121fb1c6928e3898c59b4cf66b02c5..78328ab88468fcd813f52e8ab44c9c60a1416dc6 100644 (file)
@@ -5745,6 +5745,7 @@ bool InitializationSequence::Diagnose(Sema &S,
     OverloadCandidateSet::iterator Best;
     OverloadingResult Ovl
       = FailedCandidateSet.BestViableFunction(S, Kind.getLocation(), Best);
+    (void)Ovl;
     assert(Ovl == OR_Success && "Inconsistent overload resolution");
     CXXConstructorDecl *CtorDecl = cast<CXXConstructorDecl>(Best->Function);
     S.Diag(CtorDecl->getLocation(), diag::note_constructor_declared_here);