repart: mark an assert()-only variable as unused
otherwise compilation with -Db_ndebug=true complains about a
set-but-not-used variable:
```
../src/partition/repart.c:907:33: error: variable 'left' set but not used [-Werror,-Wunused-but-set-variable]
uint64_t start, left;
^
1 error generated.
```
This commit is contained in:
@@ -899,7 +899,8 @@ static void context_place_partitions(Context *context) {
|
||||
|
||||
for (size_t i = 0; i < context->n_free_areas; i++) {
|
||||
FreeArea *a = context->free_areas[i];
|
||||
uint64_t start, left;
|
||||
_unused_ uint64_t left;
|
||||
uint64_t start;
|
||||
|
||||
if (a->after) {
|
||||
assert(a->after->offset != UINT64_MAX);
|
||||
|
||||
Reference in New Issue
Block a user