瀏覽代碼

Ninja: remove GCC -Wshadow warning

Peter Kuemmel 13 年之前
父節點
當前提交
11bd9b5588
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Source/cmNinjaNormalTargetGenerator.cxx

+ 1 - 1
Source/cmNinjaNormalTargetGenerator.cxx

@@ -432,7 +432,7 @@ void cmNinjaNormalTargetGenerator::WriteLinkStatement()
   // If we have any PRE_LINK commands, we need to go back to HOME_OUTPUT for
   // the link commands.
   if (!preLinkCmdLines.empty()) {
-    std::string path = this->GetLocalGenerator()->ConvertToOutputFormat(
+    path = this->GetLocalGenerator()->ConvertToOutputFormat(
       this->GetMakefile()->GetHomeOutputDirectory(),
       cmLocalGenerator::SHELL);
     preLinkCmdLines.push_back("cd " + path);