Jelajahi Sumber

FIX: get rid of warnings

Sebastien Barre 24 tahun lalu
induk
melakukan
7e2a78b499
2 mengubah file dengan 1 tambahan dan 2 penghapusan
  1. 0 1
      Source/cmAbstractFilesCommand.cxx
  2. 1 1
      Source/cmSetCommand.cxx

+ 0 - 1
Source/cmAbstractFilesCommand.cxx

@@ -30,7 +30,6 @@ bool cmAbstractFilesCommand::InitialPass(std::vector<std::string> const& argsIn)
   bool ret = true;
   std::string m = "could not find source file(s):\n";
 
-  cmMakefile::SourceMap &Classes = m_Makefile->GetSources();
   for(std::vector<std::string>::const_iterator j = args.begin();
       j != args.end(); ++j)
     {  

+ 1 - 1
Source/cmSetCommand.cxx

@@ -49,7 +49,7 @@ bool cmSetCommand::InitialPass(std::vector<std::string> const& args)
     if(args[1] != "CACHE" && args[2] != "CACHE")
       {
       value = args[1];
-      for(int i =2; i < args.size(); ++i)
+      for(unsigned int i =2; i < args.size(); ++i)
         {
         value += ";";
         value += args[i];