SemaDeclCXX.cpp: Suppress a warning. [-Wunused-variable]

llvm-svn: 226441
This commit is contained in:
NAKAMURA Takumi 2015-01-19 09:49:59 +00:00
parent abfacbdf3a
commit 6a1565c7e5
1 changed files with 1 additions and 0 deletions
clang/lib/Sema

View File

@ -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)