diff --git a/ProcessWin32.c b/ProcessWin32.c
index 8194008673b7df9438dda1464e56cf98ed7c0d43..fd7370569d386c16f39c86dcf2aeb49827df6100 100644
--- a/ProcessWin32.c
+++ b/ProcessWin32.c
@@ -609,7 +609,6 @@ void kwsysProcess_Execute(kwsysProcess* cp)
   for(i=0; i < cp->PipeCount; ++i)
     {
     HANDLE writeEnd;
-    DWORD dummy=0;
     
     /* The pipe is not closed.  */
     cp->Pipe[i].Closed = 0;
@@ -884,7 +883,6 @@ int kwsysProcess_WaitForExit(kwsysProcess* cp, double* userTimeout)
 {
   int i;
   int pipe = 0;
-  int pipesLeft = cp->PipeCount;
   
   /* Buffer for child's return value.  */
   int childReturnValue = 0;