mirror of
https://github.com/MariaDB/server.git
synced 2026-05-16 11:57:38 +02:00
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:
parent
601e6f4b2a
commit
88dd873de0
227 changed files with 3273 additions and 3082 deletions
12
mysys/sha1.c
12
mysys/sha1.c
|
|
@ -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];
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue