Remove a set, but unused variable. Found with GCC's warning.

llvm-svn: 147864
This commit is contained in:
Chandler Carruth 2012-01-10 18:26:14 +00:00
parent 4c0ee749bb
commit bfe8ecd347
1 changed files with 1 additions and 4 deletions

View File

@ -5532,7 +5532,6 @@ Decl *Sema::ActOnStartNamespaceDef(Scope *NamespcScope,
// For anonymous namespace, take the location of the left brace.
SourceLocation Loc = II ? IdentLoc : LBrace;
bool IsInline = InlineLoc.isValid();
bool IsInvalid = false;
bool IsStd = false;
bool AddToKnown = false;
Scope *DeclRegionScope = NamespcScope->getParent();
@ -5587,7 +5586,6 @@ Decl *Sema::ActOnStartNamespaceDef(Scope *NamespcScope,
Diag(Loc, diag::err_redefinition_different_kind)
<< II;
Diag(PrevDecl->getLocation(), diag::note_previous_definition);
IsInvalid = true;
// Continue on to push Namespc as current DeclContext and return it.
} else if (II->isStr("std") &&
CurContext->getRedeclContext()->isTranslationUnit()) {
@ -5617,7 +5615,6 @@ Decl *Sema::ActOnStartNamespaceDef(Scope *NamespcScope,
Diag(Loc, diag::err_inline_namespace_mismatch)
<< IsInline;
Diag(PrevNS->getLocation(), diag::note_previous_definition);
IsInvalid = true;
// Recover by ignoring the new namespace's inline status.
IsInline = PrevNS->isInline();