term: 'end' variable is only used in assert()

This commit is contained in:
Daniel Eklöf 2019-07-01 21:14:31 +02:00
parent 0954ffdf22
commit 4b824d824c
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -204,7 +204,7 @@ term_scroll_partial(struct terminal *term, struct scroll_region region, int rows
tll_foreach(term->grid->damage, it) {
int start = it->item.range.start - term->grid->offset;
int end = start + it->item.range.length;
int end __attribute__((unused)) = start + it->item.range.length;
if (start < region.start) {
assert(end <= region.start);