summaryrefslogtreecommitdiffstats
path: root/Source/cmSystemTools.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-08-15 13:47:21 (GMT)
committerBrad King <brad.king@kitware.com>2008-08-15 13:47:21 (GMT)
commitae60cc235ca3e1e5943b1cfcb15cc797007556ac (patch)
tree11505b628b4d3173cd513affc38321a7d20ad553 /Source/cmSystemTools.cxx
parent05624f2fe8d565d0ca470a2ebfb6e4ec5b0c1291 (diff)
downloadCMake-ae60cc235ca3e1e5943b1cfcb15cc797007556ac.zip
CMake-ae60cc235ca3e1e5943b1cfcb15cc797007556ac.tar.gz
CMake-ae60cc235ca3e1e5943b1cfcb15cc797007556ac.tar.bz2
COMP: Work-around bogus compiler warning.
Diffstat (limited to 'Source/cmSystemTools.cxx')
-rw-r--r--Source/cmSystemTools.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx
index f333a4c..2b1cefe 100644
--- a/Source/cmSystemTools.cxx
+++ b/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)