Browse Source

ENH: fix some warnings and cleanup some

Ken Martin 20 years ago
parent
commit
ccc292e4b0

+ 2 - 5
Source/cmLocalUnixMakefileGenerator3.cxx

@@ -423,10 +423,7 @@ cmLocalUnixMakefileGenerator3
 //----------------------------------------------------------------------------
 void
 cmLocalUnixMakefileGenerator3
-::WriteObjectDependRules(std::ostream& ruleFileStream,
-                         std::string &obj,
-                         const char * lang,
-                         cmSourceFile& source,
+::WriteObjectDependRules(cmSourceFile& source,
                          std::vector<std::string>& depends)
 {
   // Create the list of dependencies known at cmake time.  These are
@@ -462,7 +459,7 @@ cmLocalUnixMakefileGenerator3
   std::string ruleFileNameFull = this->ConvertToFullPath(ruleFileName);
 
   // generate the depend scanning rule
-  this->WriteObjectDependRules(ruleFileStream, obj, lang, source, depends);
+  this->WriteObjectDependRules(source, depends);
 
   this->AppendRuleDepend(depends, ruleFileNameFull.c_str());
 

+ 1 - 4
Source/cmLocalUnixMakefileGenerator3.h

@@ -212,10 +212,7 @@ protected:
                             std::ostream &filestr);
   
   // write the depend.make file for an object
-  void WriteObjectDependRules(std::ostream& ruleFileStream,
-                              std::string& obj,
-                              const char *lang,
-                              cmSourceFile& source,
+  void WriteObjectDependRules(cmSourceFile& source,
                               std::vector<std::string>& depends);
   
   // this is used only by WriteObjectDependFile