- fixed statements throwing unused-value warning
SKIPPED: psi/buffer.c
This commit is contained in:
6
exeman.c
6
exeman.c
@ -836,8 +836,8 @@ static int IsWildcardMatch(char *wildcardString, char *stringToCheck,
|
|||||||
// we only want to advance the pointers if we successfully assigned
|
// 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
|
// both of our char variables, so we'll do it here rather than in the
|
||||||
// loop condition itself
|
// loop condition itself
|
||||||
*stringToCheck++;
|
(void)*stringToCheck++;
|
||||||
*wildcardString++;
|
(void)*wildcardString++;
|
||||||
|
|
||||||
// if this isn't a case-sensitive match, make both chars uppercase
|
// if this isn't a case-sensitive match, make both chars uppercase
|
||||||
// (thanks to David John Fielder (Konan) at http://innuendo.ev.ca
|
// (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
|
// until we've either found a match or the string has
|
||||||
// ended
|
// ended
|
||||||
if (starMatchesZero)
|
if (starMatchesZero)
|
||||||
*stringToCheck--;
|
(void)*stringToCheck--;
|
||||||
|
|
||||||
while (*stringToCheck) {
|
while (*stringToCheck) {
|
||||||
if (IsWildcardMatch
|
if (IsWildcardMatch
|
||||||
|
@ -479,7 +479,7 @@ void DeleteHistMemory(void *pData)
|
|||||||
if (self->pDes) {
|
if (self->pDes) {
|
||||||
DeleteDescriptor(self->pDes);
|
DeleteDescriptor(self->pDes);
|
||||||
}
|
}
|
||||||
Fortify_CheckAllMemory();
|
(void)Fortify_CheckAllMemory();
|
||||||
|
|
||||||
if (self->pCountInt) {
|
if (self->pCountInt) {
|
||||||
free(self->pCountInt);
|
free(self->pCountInt);
|
||||||
|
2
lomax.c
2
lomax.c
@ -191,7 +191,7 @@ int calculateCOG(int *iData, int xsize, int ysize,
|
|||||||
iPtr = iData + y * xsize;
|
iPtr = iData + y * xsize;
|
||||||
for (x = xLow; x < xMax; x++) {
|
for (x = xLow; x < xMax; x++) {
|
||||||
if (iPtr[x] > threshold) {
|
if (iPtr[x] > threshold) {
|
||||||
*nCount++;
|
(void)*nCount++;
|
||||||
cogTotal += iPtr[x];
|
cogTotal += iPtr[x];
|
||||||
cogY += y * iPtr[x];
|
cogY += y * iPtr[x];
|
||||||
cogX += x * iPtr[x];
|
cogX += x * iPtr[x];
|
||||||
|
@ -103,7 +103,7 @@ int InitServer(char *file, pServer * pServ)
|
|||||||
|
|
||||||
/* configure fortify */
|
/* configure fortify */
|
||||||
iFortifyScope = Fortify_EnterScope();
|
iFortifyScope = Fortify_EnterScope();
|
||||||
Fortify_CheckAllMemory();
|
(void)Fortify_CheckAllMemory();
|
||||||
|
|
||||||
/* interpreter */
|
/* interpreter */
|
||||||
self->pSics = InitInterp();
|
self->pSics = InitInterp();
|
||||||
@ -259,7 +259,7 @@ int InitServer(char *file, pServer * pServ)
|
|||||||
|
|
||||||
/* exit handlers need to be installed here */
|
/* exit handlers need to be installed here */
|
||||||
atexit(StopExit);
|
atexit(StopExit);
|
||||||
Fortify_CheckAllMemory();
|
(void)Fortify_CheckAllMemory();
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -360,8 +360,8 @@ void StopServer(pServer self)
|
|||||||
LLDsystemClose();
|
LLDsystemClose();
|
||||||
|
|
||||||
/* make fortify print his findings */
|
/* make fortify print his findings */
|
||||||
Fortify_DumpAllMemory(iFortifyScope);
|
(void)Fortify_DumpAllMemory(iFortifyScope);
|
||||||
Fortify_LeaveScope();
|
(void)Fortify_LeaveScope();
|
||||||
|
|
||||||
free(self);
|
free(self);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user