浏览代码

COMP: Remove warnings

Andy Cedilnik 20 年之前
父节点
当前提交
416bbaef53
共有 2 个文件被更改,包括 4 次插入0 次删除
  1. 3 0
      Source/cmFindFileCommand.cxx
  2. 1 0
      Source/cmTarget.cxx

+ 3 - 0
Source/cmFindFileCommand.cxx

@@ -114,6 +114,9 @@ cmStdString cmFindFileCommand::FindHeaderInFrameworks(
   const char* file)
   const char* file)
 {
 {
 #ifndef __APPLE__
 #ifndef __APPLE__
+  (void)path;
+  (void)defineVar;
+  (void)file;
   return cmStdString("");
   return cmStdString("");
 #else
 #else
   cmStdString fileName = file;
   cmStdString fileName = file;

+ 1 - 0
Source/cmTarget.cxx

@@ -307,6 +307,7 @@ void cmTarget::AddLinkLibrary(const std::string& lib,
 
 
 bool cmTarget::AddFramework(const std::string& libname, LinkLibraryType llt)
 bool cmTarget::AddFramework(const std::string& libname, LinkLibraryType llt)
 {
 {
+  (void)llt; // TODO: What is this?
   if(cmSystemTools::IsPathToFramework(libname.c_str()))
   if(cmSystemTools::IsPathToFramework(libname.c_str()))
     {
     {
     std::string frameworkDir = libname;
     std::string frameworkDir = libname;