A few compiler warnings suppressed.

This commit is contained in:
antirez
2012-04-24 11:11:55 +02:00
parent a66a496349
commit e54fe9a79f
3 changed files with 6 additions and 3 deletions

View File

@ -890,7 +890,7 @@ static int evalMode(int argc, char **argv) {
static void latencyMode(void) {
redisReply *reply;
long long start, latency, min, max, tot, count = 0;
long long start, latency, min = 0, max = 0, tot = 0, count = 0;
double avg;
if (!context) exit(1);
@ -977,7 +977,7 @@ static void slaveMode(void) {
static void findBigKeys(void) {
unsigned long long biggest[5] = {0,0,0,0,0};
unsigned long long samples = 0;
redisReply *reply1, *reply2, *reply3;
redisReply *reply1, *reply2, *reply3 = NULL;
char *sizecmd, *typename[] = {"string","list","set","hash","zset"};
int type;