Browse Source

fix dash8 warning

Ken Martin 21 years ago
parent
commit
685a8ed86f
1 changed files with 3 additions and 3 deletions
  1. 3 3
      Source/cmCTest.cxx

+ 3 - 3
Source/cmCTest.cxx

@@ -1568,11 +1568,11 @@ int cmCTest::Run(std::vector<std::string>const& args, std::string* output)
   if(cmakeAndTest)
     {
     cmSystemTools::ResetErrorOccuredFlag();
-    cmListFileCache::GetInstance()->ClearCache();
+    cmListFileCache *lfc = cmListFileCache::GetInstance();
+    lfc->ClearCache();
     int retv = this->RunCMakeAndTest(output);
     cmSystemTools::ResetErrorOccuredFlag();
-    cmListFileCache* lf = cmListFileCache::GetInstance();
-    lf->ClearCache(); 
+    lfc->ClearCache();
 #ifdef CMAKE_BUILD_WITH_CMAKE
     cmDynamicLoader::FlushCache();
 #endif