so that warnings about unused variables don't appear if those blocks
are removed by the C preprocessor.
Submitted by:
Reviewed by:
PR:
void SHA1_Transform(SHA_CTX *c, unsigned char *b)
{
SHA_LONG p[SHA_LBLOCK];
- SHA_LONG *q;
- int i;
#if SHA_LONG_LOG2==2
#if defined(B_ENDIAN) || defined(SHA1_ASM)
#else
if (((unsigned long)b%sizeof(SHA_LONG)) == 0)
{
+ SHA_LONG *q;
+ int i;
+
q=p;
for (i=(SHA_LBLOCK/4); i; i--)
{
#endif
#endif
#ifndef SHA_NO_TAIL_CODE /* defined above, see comment */
- q=p;
- for (i=(SHA_LBLOCK/4); i; i--)
{
- SHA_LONG l;
- c2nl(b,l); *(q++)=l;
- c2nl(b,l); *(q++)=l;
- c2nl(b,l); *(q++)=l;
- c2nl(b,l); *(q++)=l;
- }
- sha1_block(c,p,1);
+ SHA_LONG *q;
+ int i;
+
+ q=p;
+ for (i=(SHA_LBLOCK/4); i; i--)
+ {
+ SHA_LONG l;
+ c2nl(b,l); *(q++)=l;
+ c2nl(b,l); *(q++)=l;
+ c2nl(b,l); *(q++)=l;
+ c2nl(b,l); *(q++)=l;
+ }
+ sha1_block(c,p,1);
+ }
#endif
}