ERR: Remove warning

This commit is contained in:
Andy Cedilnik 2004-02-11 10:56:35 -05:00
parent ff6bc56616
commit 302d60371a

View File

@ -2271,9 +2271,9 @@ int cmCTest::TestDirectory(bool memcheck)
if ( m_DartMode ) if ( m_DartMode )
{ {
std::ofstream ofs; std::ofstream xmlfile;
if( !this->OpenOutputFile(m_CurrentTag, 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") std::cerr << "Cannot create " << (memcheck ? "memory check" : "testing")
<< " XML file" << std::endl; << " XML file" << std::endl;
@ -2281,11 +2281,11 @@ int cmCTest::TestDirectory(bool memcheck)
} }
if ( memcheck ) if ( memcheck )
{ {
this->GenerateDartMemCheckOutput(ofs); this->GenerateDartMemCheckOutput(xmlfile);
} }
else else
{ {
this->GenerateDartTestOutput(ofs); this->GenerateDartTestOutput(xmlfile);
} }
} }