浏览代码

COMP: fix some w4 warnings

Ken Martin 18 年之前
父节点
当前提交
8e702e6977
共有 2 个文件被更改,包括 5 次插入1 次删除
  1. 1 1
      Source/cmLocalVisualStudio7Generator.cxx
  2. 4 0
      Source/cmWin32ProcessExecution.cxx

+ 1 - 1
Source/cmLocalVisualStudio7Generator.cxx

@@ -1587,7 +1587,7 @@ std::string cmLocalVisualStudio7Generator
 class cmVS7XMLParser : public cmXMLParser
 class cmVS7XMLParser : public cmXMLParser
 {
 {
 public:
 public:
-  virtual void EndElement(const char* name)
+  virtual void EndElement(const char* /* name */)
     {
     {
     }
     }
   virtual void StartElement(const char* name, const char** atts)
   virtual void StartElement(const char* name, const char** atts)

+ 4 - 0
Source/cmWin32ProcessExecution.cxx

@@ -502,6 +502,10 @@ bool cmWin32ProcessExecution::PrivateOpen(const char *cmdstring,
   saAttr.bInheritHandle = TRUE;
   saAttr.bInheritHandle = TRUE;
   saAttr.lpSecurityDescriptor = NULL;
   saAttr.lpSecurityDescriptor = NULL;
   
   
+  fd1 = 0;
+  fd2 = 0;
+  fd3 = 0;
+
   if (!CreatePipe(&this->hChildStdinRd, &this->hChildStdinWr, &saAttr, 0))
   if (!CreatePipe(&this->hChildStdinRd, &this->hChildStdinWr, &saAttr, 0))
     {
     {
     this->Output += "CreatePipeError\n";
     this->Output += "CreatePipeError\n";