diff --git a/ProcessUNIX.c b/ProcessUNIX.c
index d2e8bfb5dfd7d5c2b05b328cb7b26a7c00e0f039..c217d071b6b7c713cf5a1a80d1478f9e8b55a96c 100644
--- a/ProcessUNIX.c
+++ b/ProcessUNIX.c
@@ -2440,7 +2440,6 @@ static int kwsysProcessesAdd(kwsysProcess* cp)
      given process object that a child has exited.  */
   {
   /* Create the pipe.  */
-  int oldfl[2];
   int p[2];
   if(pipe(p) < 0)
     {