From 6a1565c7e5c7c7765535684d0188a83aec2967a0 Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Mon, 19 Jan 2015 09:49:59 +0000 Subject: [PATCH] SemaDeclCXX.cpp: Suppress a warning. [-Wunused-variable] llvm-svn: 226441 --- clang/lib/Sema/SemaDeclCXX.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/clang/lib/Sema/SemaDeclCXX.cpp b/clang/lib/Sema/SemaDeclCXX.cpp index 5fb10f6da4af..1b9ccee9dbee 100644 --- a/clang/lib/Sema/SemaDeclCXX.cpp +++ b/clang/lib/Sema/SemaDeclCXX.cpp @@ -1652,6 +1652,7 @@ bool Sema::AttachBaseSpecifiers(CXXRecordDecl *Class, CXXBaseSpecifier **Bases, bool found = Class->isDerivedFrom(CanonicalBase->getAsCXXRecordDecl(), Paths); assert(found); + (void)found; if (Paths.isAmbiguous(CanonicalBase)) Diag(Bases[idx]->getLocStart (), diag::warn_inaccessible_base_class)