From 2b421becad8f792154b4bace9a6fab791118cea4 Mon Sep 17 00:00:00 2001 From: Andrea Mazzoleni Date: Thu, 5 May 2011 21:11:25 +0200 Subject: [PATCH] Some warnings removal. --- dry.c | 2 -- speed.c | 1 - sync.c | 2 +- 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/dry.c b/dry.c index 70ee15eb..24928019 100644 --- a/dry.c +++ b/dry.c @@ -157,7 +157,6 @@ void state_dry(struct snapraid_state* state, block_off_t blockstart, block_off_t char parity_path[PATH_MAX]; char qarity_path[PATH_MAX]; block_off_t blockmax; - data_off_t size; int ret; int parity_f; int qarity_f; @@ -166,7 +165,6 @@ void state_dry(struct snapraid_state* state, block_off_t blockstart, block_off_t printf("Drying...\n"); blockmax = parity_resize(state); - size = blockmax * (data_off_t)state->block_size; if (blockstart > blockmax) { fprintf(stderr, "Error in the specified starting block %u. It's bigger than the parity size %u.\n", blockstart, blockmax); diff --git a/speed.c b/speed.c index 13bbfa65..773d9e15 100644 --- a/speed.c +++ b/speed.c @@ -103,7 +103,6 @@ void speed(void) printf("Murmur3 %"PRIu64" [MB/s]\n", ds / dt); - count = 0; SPEED_START { raid5_int32r2(buffer, diskmax, block_size); } SPEED_STOP diff --git a/sync.c b/sync.c index 6ee5718c..530984cb 100644 --- a/sync.c +++ b/sync.c @@ -219,6 +219,7 @@ static int state_sync_process(struct snapraid_state* state, int parity_f, int qa if (!block) continue; + /* now all the blocks have the hash and the parity computed */ block_flag_set(block, BLOCK_HAS_HASH | BLOCK_HAS_PARITY); } @@ -273,7 +274,6 @@ int state_sync(struct snapraid_state* state, block_off_t blockstart, block_off_t printf("Syncing...\n"); blockmax = parity_resize(state); - size = blockmax * (data_off_t)state->block_size; if (blockstart > blockmax) {