summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/cmLocalVisualStudio7Generator.cxx2
-rw-r--r--Source/cmWin32ProcessExecution.cxx4
2 files changed, 5 insertions, 1 deletions
diff --git a/Source/cmLocalVisualStudio7Generator.cxx b/Source/cmLocalVisualStudio7Generator.cxx
index ae4547d..ee1c014 100644
--- a/Source/cmLocalVisualStudio7Generator.cxx
+++ b/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)
diff --git a/Source/cmWin32ProcessExecution.cxx b/Source/cmWin32ProcessExecution.cxx
index 6e62990..27ec2e5 100644
--- a/Source/cmWin32ProcessExecution.cxx
+++ b/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";