From dcdde834a5bf4dff3ba7f5f64870a9ef06178dcd Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Wed, 7 Jan 2004 12:50:10 -0500 Subject: [PATCH] ENH: remove warning --- Source/cmCTest.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Source/cmCTest.cxx b/Source/cmCTest.cxx index dd9bb5a64f..4e7df666f4 100644 --- a/Source/cmCTest.cxx +++ b/Source/cmCTest.cxx @@ -3835,7 +3835,7 @@ void cmCTest::FindRunningCMake(const char* arg0) } } -void CMakeMessageCallback(const char* m, const char* title, bool& nomore, void* s) +void CMakeMessageCallback(const char* m, const char*, bool&, void* s) { std::string* out = (std::string*)s; *out += m; @@ -3920,8 +3920,6 @@ int cmCTest::RunCMakeAndTest(std::string* outstring) std::cerr << "Did you specify a --build-makeprogram and a --build-generator?\n"; } int retVal = 0; - int ret = 0; - std::string makeCommand = cmSystemTools::ConvertToOutputPath(m_BuildMakeProgram.c_str()); std::string lowerCaseCommand = cmSystemTools::LowerCase(makeCommand); // if msdev is the make program then do the following @@ -4046,7 +4044,7 @@ int cmCTest::RunCMakeAndTest(std::string* outstring) } // return to the original directory cmSystemTools::ChangeDirectory(cwd.c_str()); - ret = 1; + retVal = 1; } if(outstring)