mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-03-08 20:58:20 +03:00
hashmap: use assert_se() to make clang happy
Otherwise it complains about a set but unused variable: ``` ../src/basic/hashmap.c:1070:48: error: variable 'n_rehashed' set but not used [-Werror,-Wunused-but-set-variable] unsigned old_n_buckets, new_n_buckets, n_rehashed, new_n_entries; ^ 1 error generated. ``` (cherry picked from commit 3b2b3d298541fbf20a05553cc3a1b1bf173ccf3f)
This commit is contained in:
parent
94a25aa6d5
commit
1f32ec761c
@ -1191,7 +1191,7 @@ static int resize_buckets(HashmapBase *h, unsigned entries_add) {
|
||||
} while (rehash_next);
|
||||
}
|
||||
|
||||
assert(n_rehashed == n_entries(h));
|
||||
assert_se(n_rehashed == n_entries(h));
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user