From 08042a1f135c351f81ce871e164f71f44960f6af Mon Sep 17 00:00:00 2001
From: Brad King <brad.king@kitware.com>
Date: Fri, 22 Apr 2005 09:21:19 -0400
Subject: [PATCH] COMP: Fixed unused parameter and constant conditional
 warnings.

---
 ProcessWin32.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/ProcessWin32.c b/ProcessWin32.c
index e7a4d44c..cf4e72e8 100644
--- a/ProcessWin32.c
+++ b/ProcessWin32.c
@@ -1607,6 +1607,8 @@ DWORD WINAPI kwsysProcessPipeThreadWake(LPVOID ptd)
 */
 void kwsysProcessPipeThreadWakePipe(kwsysProcess* cp, kwsysProcessPipeData* td)
 {
+  (void)cp;
+
   /* Wait for a possible wake command. */
   WaitForSingleObject(td->Waker.Go, INFINITE);
 
@@ -2507,7 +2509,7 @@ static void kwsysProcess_List__Delete_NT4(kwsysProcess_List* self)
 static int kwsysProcess_List__Update_NT4(kwsysProcess_List* self)
 {
   self->CurrentInfo = 0;
-  while(1)
+  for(;;)
     {
     /* Query number 5 is for system process list.  */
     NTSTATUS status =
-- 
GitLab