瀏覽代碼

COMP: Work-around bogus compiler warning.

Brad King 17 年之前
父節點
當前提交
ae60cc235c
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      Source/cmSystemTools.cxx

+ 2 - 0
Source/cmSystemTools.cxx

@@ -2460,6 +2460,7 @@ bool cmSystemTools::ChangeRPath(std::string const& file,
     return true;
     }
 
+  {
   // Open the file for update.
   std::ofstream f(file.c_str(),
                   std::ios::in | std::ios::out | std::ios::binary);
@@ -2507,6 +2508,7 @@ bool cmSystemTools::ChangeRPath(std::string const& file,
       return false;
       }
     }
+  }
 
   // Everything was updated successfully.
   if(changed)