Ver código fonte

warning fixes

Ken Martin 22 anos atrás
pai
commit
0b3b21fa63

+ 2 - 2
Source/cmCustomCommand.cxx

@@ -48,8 +48,8 @@ cmCustomCommand::cmCustomCommand(const cmCustomCommand& r):
   m_Command(r.m_Command),
   m_Arguments(r.m_Arguments),
   m_Comment(r.m_Comment),
-  m_Depends(r.m_Depends),
-  m_Output(r.m_Output)
+  m_Output(r.m_Output),
+  m_Depends(r.m_Depends)
 {
 }
 

+ 3 - 3
Source/cmLocalUnixMakefileGenerator.cxx

@@ -679,7 +679,7 @@ void cmLocalUnixMakefileGenerator::OutputLinkLibraries(std::ostream& fout,
 }
 
 std::string cmLocalUnixMakefileGenerator::CreatePreBuildRules(
-  const cmTarget &target, const char* targetName)
+  const cmTarget &target, const char* /* targetName */)
 {
   std::string customRuleCode = "";
   bool initNext = false;
@@ -704,7 +704,7 @@ std::string cmLocalUnixMakefileGenerator::CreatePreBuildRules(
 }
 
 std::string cmLocalUnixMakefileGenerator::CreatePreLinkRules(
-  const cmTarget &target, const char* targetName)
+  const cmTarget &target, const char* /* targetName */)
 {
   std::string customRuleCode = "";
   bool initNext = false;
@@ -729,7 +729,7 @@ std::string cmLocalUnixMakefileGenerator::CreatePreLinkRules(
 }
 
 std::string cmLocalUnixMakefileGenerator::CreatePostBuildRules(
-  const cmTarget &target, const char* targetName)
+  const cmTarget &target, const char* /* targetName */)
 {
   std::string customRuleCode = "";
   bool initNext = false;

+ 0 - 1
Source/cmMakefile.cxx

@@ -1663,7 +1663,6 @@ cmSourceFile* cmMakefile::GetOrCreateSource(const char* sourceName,
     {
     cmSystemTools::Error(
       "CMake failed to properly look up cmSourceFile: ", sourceName);
-    int i = *(int *)0x0;
     }
   return ret;
 }

+ 1 - 1
Source/cmSourceGroup.cxx

@@ -50,7 +50,7 @@ bool cmSourceGroup::Matches(const char* name)
 /**
  * Add a source to the group that the compiler will know how to build.
  */
-void cmSourceGroup::AddSource(const char* name, const cmSourceFile* sf)
+void cmSourceGroup::AddSource(const char* /* name */, const cmSourceFile* sf)
 {
   m_SourceFiles.push_back(sf);
 }