mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-20 15:06:34 -05:00
Silence clang static analyzer warnings
This commit is contained in:
parent
52c00ea982
commit
cd39ccf752
10 changed files with 35 additions and 19 deletions
|
|
@ -2007,7 +2007,10 @@ static int state_diffscan(struct snapraid_state* state, int is_diff)
|
|||
int all_missing = 0;
|
||||
int all_rewritten = 0;
|
||||
done = 0;
|
||||
|
||||
for (i = state->disklist, j = scanlist; i != 0; i = i->next, j = j->next) {
|
||||
assert(j != 0); /* silence the clang static analyzer (both lists have the same number of elements) */
|
||||
|
||||
struct snapraid_disk* disk = i->data;
|
||||
struct snapraid_scan* scan = j->data;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue