Skip to content

Commit

Permalink
silence warnings about variables not being read
Browse files Browse the repository at this point in the history
  • Loading branch information
protocool authored and Juan Pablo Ortiz Aréchiga committed Jun 24, 2010
1 parent 669018c commit 4452336
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Crytpo/Base64Transcoder.c
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,9 @@ else if (theRemainingBytes == 2)
}
}
return(true);

// MODS THS - silence analyzer warnings about stored values never being read
#pragma unused(theOutIndex)
}

bool Base64DecodeData(const void *inInputData, size_t inInputDataSize, void *ioOutputData, size_t *ioOutputDataSize)
Expand Down
7 changes: 7 additions & 0 deletions Crytpo/sha1.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ static unsigned char workspace[64];
state[4] += e;
/* Wipe variables */
a = b = c = d = e = 0;

// MODS THS - silence analyzer warnings about stored values never being read
#pragma unused(a,b,c,d,e)
}


Expand Down Expand Up @@ -159,6 +162,10 @@ unsigned char finalcount[8];
}
/* Wipe variables */
i = j = 0;

// MODS THS - silence analyzer warnings about stored values never being read
#pragma unused(i,j)

memset(context->buffer, 0, 64);
memset(context->state, 0, 20);
memset(context->count, 0, 8);
Expand Down

0 comments on commit 4452336

Please sign in to comment.