瀏覽代碼

fix some warnings

Bill Hoffman 23 年之前
父節點
當前提交
fd30c82a19
共有 1 個文件被更改,包括 1 次插入5 次删除
  1. 1 5
      Source/cmLocalUnixMakefileGenerator.cxx

+ 1 - 5
Source/cmLocalUnixMakefileGenerator.cxx

@@ -286,8 +286,8 @@ void cmLocalUnixMakefileGenerator::OutputMakefile(const char* file,
 std::string 
 cmLocalUnixMakefileGenerator::GetOutputExtension(const char* s)
 {
-  std::string sourceExtension = s;
 #if defined(_WIN32) && ! defined(__CYGWIN__) 
+  std::string sourceExtension = s;
   if(sourceExtension == "def")
     {
     return "";
@@ -558,7 +558,6 @@ void cmLocalUnixMakefileGenerator::OutputLinkLibraries(std::ostream& fout,
           runtimeDirs.push_back( libpath );
           }
         }  
-      cmRegularExpression reg(regexp.c_str()); 
       cmRegularExpression libname("lib([^/]*)(\\.so|\\.lib|\\.dll|\\.sl|\\.a|\\.dylib).*");
       cmRegularExpression libname_noprefix("([^/]*)(\\.so|\\.lib|\\.dll|\\.sl|\\.a|\\.dylib).*");
       if(libname.find(file))
@@ -2185,7 +2184,6 @@ OutputBuildObjectFromSource(std::ostream& fout,
   std::string objectFile = std::string(shortName) + 
     this->GetOutputExtension(source.GetSourceExtension().c_str());
   objectFile = cmSystemTools::ConvertToOutputPath(objectFile.c_str());
-  std::string compileCommand;
   cmSystemTools::FileFormat format = 
     cmSystemTools::GetFileFormat(source.GetSourceExtension().c_str());
   std::vector<std::string> rules;
@@ -2250,10 +2248,8 @@ OutputBuildObjectFromSource(std::ostream& fout,
       }
     case cmSystemTools::HEADER_FILE_FORMAT:
       return;
-      break;
     case cmSystemTools::DEFINITION_FILE_FORMAT:
       return;
-      break;
     case cmSystemTools::RESOURCE_FILE_FORMAT:
       {
       flags = " $(INCLUDE_FLAGS) ";