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:
Frantisek Sumsal
2021-09-15 15:46:19 +02:00
parent d7ac09520b
commit 2ea7eb003c
+2 -1
View File
@@ -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);