Fixed compiler warnings detected by option -Wshadow and -Wunused:

- Removed not used variables and functions
- Added #ifdef around code that is not used
- Renamed variables and functions to avoid conflicts
- Removed some not used arguments

Fixed some class/struct warnings in ndb
Added define IS_LONGDATA() to simplify code in libmysql.c

I did run gcov on the changes and added 'purecov' comments on almost all lines that was not just variable name changes
This commit is contained in:
monty@mysql.com/narttu.mysql.fi 2006-12-15 00:51:37 +02:00
commit 88dd873de0
227 changed files with 3273 additions and 3082 deletions

View file

@ -245,7 +245,7 @@ static void SHA1ProcessMessageBlock(SHA1_CONTEXT *context)
uint32 temp; /* Temporary word value */
uint32 W[80]; /* Word sequence */
uint32 A, B, C, D, E; /* Word buffers */
int index;
int idx;
/*
Initialize the first 16 words in the array W
@ -253,11 +253,11 @@ static void SHA1ProcessMessageBlock(SHA1_CONTEXT *context)
for (t = 0; t < 16; t++)
{
index=t*4;
W[t] = context->Message_Block[index] << 24;
W[t] |= context->Message_Block[index + 1] << 16;
W[t] |= context->Message_Block[index + 2] << 8;
W[t] |= context->Message_Block[index + 3];
idx=t*4;
W[t] = context->Message_Block[idx] << 24;
W[t] |= context->Message_Block[idx + 1] << 16;
W[t] |= context->Message_Block[idx + 2] << 8;
W[t] |= context->Message_Block[idx + 3];
}