From ae60cc235ca3e1e5943b1cfcb15cc797007556ac Mon Sep 17 00:00:00 2001 From: Brad King Date: Fri, 15 Aug 2008 09:47:21 -0400 Subject: [PATCH] COMP: Work-around bogus compiler warning. --- Source/cmSystemTools.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx index f333a4c67..2b1cefe8a 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)