mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-25 17:36:26 -05:00
Removes some clang warnings.
This commit is contained in:
parent
f21d86e999
commit
5dc4365394
3 changed files with 10 additions and 6 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue