Browse Source

COMP: fix some w4 warnings

Ken Martin 18 years ago
parent
commit
8e702e6977
2 changed files with 5 additions and 1 deletions
  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
 {
 public:
-  virtual void EndElement(const char* name)
+  virtual void EndElement(const char* /* name */)
     {
     }
   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.lpSecurityDescriptor = NULL;
   
+  fd1 = 0;
+  fd2 = 0;
+  fd3 = 0;
+
   if (!CreatePipe(&this->hChildStdinRd, &this->hChildStdinWr, &saAttr, 0))
     {
     this->Output += "CreatePipeError\n";