summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2005-04-22 13:21:19 (GMT)
committerBrad King <brad.king@kitware.com>2005-04-22 13:21:19 (GMT)
commitfbe5a2e62966c766ed0052b98ae815d3335b18f5 (patch)
treed99f79f88b197e2439d03fdee8666684dfa6b5f5
parente4092a2a7a7bf1fc1c6b27a20ee869dc03086227 (diff)
downloadCMake-fbe5a2e62966c766ed0052b98ae815d3335b18f5.zip
CMake-fbe5a2e62966c766ed0052b98ae815d3335b18f5.tar.gz
CMake-fbe5a2e62966c766ed0052b98ae815d3335b18f5.tar.bz2
COMP: Fixed unused parameter and constant conditional warnings.
-rw-r--r--Source/kwsys/ProcessWin32.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/kwsys/ProcessWin32.c b/Source/kwsys/ProcessWin32.c
index 922da17..bf29dd2 100644
--- a/Source/kwsys/ProcessWin32.c
+++ b/Source/kwsys/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 =