From 63cd6e39e105fc111974566aa00025f4d8755b70 Mon Sep 17 00:00:00 2001 From: Ken Martin Date: Fri, 11 Mar 2005 08:38:15 -0500 Subject: [PATCH] COMP: fix a warning --- Source/cmake.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Source/cmake.cxx b/Source/cmake.cxx index e09dca82b..a07fae0bd 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -1277,8 +1277,6 @@ int cmake::Run(const std::vector& 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& 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;