Removes some clang warnings.

This commit is contained in:
Andrea Mazzoleni 2014-09-17 21:49:37 +02:00
parent f21d86e999
commit 5dc4365394
3 changed files with 10 additions and 6 deletions

View file

@ -175,7 +175,9 @@ void state_dry(struct snapraid_state* state, block_off_t blockstart, block_off_t
block_off_t blockmax;
int ret;
struct snapraid_parity parity[LEV_MAX];
struct snapraid_parity* parity_ptr[LEV_MAX];
/* the following initialization is to avoid clang warnings about */
/* potential state->level change, that never happens */
struct snapraid_parity* parity_ptr[LEV_MAX] = { 0 };
unsigned error;
unsigned l;