From: David Majnemer Date: Fri, 24 Apr 2015 04:14:25 +0000 (+0000) Subject: Remove unused variable to silence GCC warning X-Git-Tag: llvmorg-3.7.0-rc1~6090 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b9ac794f577ebf68c1ad5dd27c83122de3b4b02a;p=platform%2Fupstream%2Fllvm.git Remove unused variable to silence GCC warning llvm-svn: 235693 --- diff --git a/clang/lib/Lex/PPLexerChange.cpp b/clang/lib/Lex/PPLexerChange.cpp index b53c40e..a57cba4 100644 --- a/clang/lib/Lex/PPLexerChange.cpp +++ b/clang/lib/Lex/PPLexerChange.cpp @@ -630,7 +630,6 @@ void Preprocessor::LeaveSubmodule() { // This module may have exported a new macro. If so, create a ModuleMacro // representing that fact. bool ExplicitlyPublic = false; - ModuleMacro *MM = nullptr; for (auto *MD = Macro.second.getLatest(); MD != State.getLatest(); MD = MD->getPrevious()) { // Skip macros defined in other submodules we #included along the way. @@ -654,8 +653,8 @@ void Preprocessor::LeaveSubmodule() { // FIXME: Issue a warning if multiple headers for the same submodule // define a macro, rather than silently ignoring all but the first. bool IsNew; - MM = addModuleMacro(Info.M, II, Def, Macro.second.getOverriddenMacros(), - IsNew); + addModuleMacro(Info.M, II, Def, Macro.second.getOverriddenMacros(), + IsNew); break; } }