summaryrefslogtreecommitdiffstats
path: root/Source/cmake.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2005-03-11 13:38:15 (GMT)
committerKen Martin <ken.martin@kitware.com>2005-03-11 13:38:15 (GMT)
commit63cd6e39e105fc111974566aa00025f4d8755b70 (patch)
tree4dec64054fddcb29330f6b696af298cec5db64f0 /Source/cmake.cxx
parent4f1591d91cdcebcc2b9171032a1d52f9075d85a6 (diff)
downloadCMake-63cd6e39e105fc111974566aa00025f4d8755b70.zip
CMake-63cd6e39e105fc111974566aa00025f4d8755b70.tar.gz
CMake-63cd6e39e105fc111974566aa00025f4d8755b70.tar.bz2
COMP: fix a warning
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r--Source/cmake.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index e09dca8..a07fae0 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -1277,8 +1277,6 @@ int cmake::Run(const std::vector<std::string>& args, bool noconfigure)
return 0;
}
- int ret = 0;
-
// now run the global generate
// Check the state of the build system to see if we need to regenerate.
if(!this->CheckBuildSystem())
@@ -1292,7 +1290,7 @@ int cmake::Run(const std::vector<std::string>& args, bool noconfigure)
std::string oldstartoutputdir = this->GetStartOutputDirectory();
this->SetStartDirectory(this->GetHomeDirectory());
this->SetStartOutputDirectory(this->GetHomeOutputDirectory());
- ret = this->Configure();
+ int ret = this->Configure();
if (ret || m_ScriptMode)
{
return ret;