From 76694b409ded81c2be06e86a951e443abbbe0852 Mon Sep 17 00:00:00 2001 From: zolliker Date: Fri, 27 Feb 2009 07:57:33 +0000 Subject: [PATCH] - fixed statements throwing unused-value warning SKIPPED: psi/buffer.c --- exeman.c | 6 +++--- histmem.c | 2 +- lomax.c | 2 +- nserver.c | 8 ++++---- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/exeman.c b/exeman.c index d62cb5ec..ba9ab642 100644 --- a/exeman.c +++ b/exeman.c @@ -836,8 +836,8 @@ static int IsWildcardMatch(char *wildcardString, char *stringToCheck, // we only want to advance the pointers if we successfully assigned // both of our char variables, so we'll do it here rather than in the // loop condition itself - *stringToCheck++; - *wildcardString++; + (void)*stringToCheck++; + (void)*wildcardString++; // if this isn't a case-sensitive match, make both chars uppercase // (thanks to David John Fielder (Konan) at http://innuendo.ev.ca @@ -854,7 +854,7 @@ static int IsWildcardMatch(char *wildcardString, char *stringToCheck, // until we've either found a match or the string has // ended if (starMatchesZero) - *stringToCheck--; + (void)*stringToCheck--; while (*stringToCheck) { if (IsWildcardMatch diff --git a/histmem.c b/histmem.c index a866a23d..4ad548f0 100644 --- a/histmem.c +++ b/histmem.c @@ -479,7 +479,7 @@ void DeleteHistMemory(void *pData) if (self->pDes) { DeleteDescriptor(self->pDes); } - Fortify_CheckAllMemory(); + (void)Fortify_CheckAllMemory(); if (self->pCountInt) { free(self->pCountInt); diff --git a/lomax.c b/lomax.c index de143672..8017d3d6 100644 --- a/lomax.c +++ b/lomax.c @@ -191,7 +191,7 @@ int calculateCOG(int *iData, int xsize, int ysize, iPtr = iData + y * xsize; for (x = xLow; x < xMax; x++) { if (iPtr[x] > threshold) { - *nCount++; + (void)*nCount++; cogTotal += iPtr[x]; cogY += y * iPtr[x]; cogX += x * iPtr[x]; diff --git a/nserver.c b/nserver.c index be412f8b..9553c655 100644 --- a/nserver.c +++ b/nserver.c @@ -103,7 +103,7 @@ int InitServer(char *file, pServer * pServ) /* configure fortify */ iFortifyScope = Fortify_EnterScope(); - Fortify_CheckAllMemory(); + (void)Fortify_CheckAllMemory(); /* interpreter */ self->pSics = InitInterp(); @@ -259,7 +259,7 @@ int InitServer(char *file, pServer * pServ) /* exit handlers need to be installed here */ atexit(StopExit); - Fortify_CheckAllMemory(); + (void)Fortify_CheckAllMemory(); return 1; } @@ -360,8 +360,8 @@ void StopServer(pServer self) LLDsystemClose(); /* make fortify print his findings */ - Fortify_DumpAllMemory(iFortifyScope); - Fortify_LeaveScope(); + (void)Fortify_DumpAllMemory(iFortifyScope); + (void)Fortify_LeaveScope(); free(self);