diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2004-02-11 15:56:35 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2004-02-11 15:56:35 (GMT) |
commit | 302d60371ad77d45294ec1c4cb2678f4ef2647b7 (patch) | |
tree | 9af787754b182ac0f1ab21f3ffcd0f2ac3534679 | |
parent | ff6bc566163ef85f4540240e933b47c47df481e1 (diff) | |
download | CMake-302d60371ad77d45294ec1c4cb2678f4ef2647b7.zip CMake-302d60371ad77d45294ec1c4cb2678f4ef2647b7.tar.gz CMake-302d60371ad77d45294ec1c4cb2678f4ef2647b7.tar.bz2 |
ERR: Remove warning
-rw-r--r-- | Source/cmCTest.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/cmCTest.cxx b/Source/cmCTest.cxx index 2b3eda5..dbbcf40 100644 --- a/Source/cmCTest.cxx +++ b/Source/cmCTest.cxx @@ -2271,9 +2271,9 @@ int cmCTest::TestDirectory(bool memcheck) if ( m_DartMode ) { - std::ofstream ofs; + std::ofstream xmlfile; if( !this->OpenOutputFile(m_CurrentTag, - (memcheck ? (m_CompatibilityMode?"Purify.xml":"MemCheck.xml") : "Test.xml"), ofs) ) + (memcheck ? (m_CompatibilityMode?"Purify.xml":"MemCheck.xml") : "Test.xml"), xmlfile) ) { std::cerr << "Cannot create " << (memcheck ? "memory check" : "testing") << " XML file" << std::endl; @@ -2281,11 +2281,11 @@ int cmCTest::TestDirectory(bool memcheck) } if ( memcheck ) { - this->GenerateDartMemCheckOutput(ofs); + this->GenerateDartMemCheckOutput(xmlfile); } else { - this->GenerateDartTestOutput(ofs); + this->GenerateDartTestOutput(xmlfile); } } |