mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-23 05:33:57 -04:00
search: 'len' is unused in release builds (it's only used in an assert)
This commit is contained in:
parent
c1bbb64a4d
commit
c3b5fa82be
1 changed files with 1 additions and 1 deletions
2
search.c
2
search.c
|
|
@ -54,7 +54,7 @@ search_update(struct terminal *term)
|
||||||
|
|
||||||
int start_row = term->search.match.row;
|
int start_row = term->search.match.row;
|
||||||
int start_col = term->search.match.col;
|
int start_col = term->search.match.col;
|
||||||
size_t len = term->search.match_len;
|
size_t len __attribute__((unused)) = term->search.match_len;
|
||||||
|
|
||||||
assert((len == 0 && start_row == -1 && start_col == -1) ||
|
assert((len == 0 && start_row == -1 && start_col == -1) ||
|
||||||
(len > 0 && start_row >= 0 && start_col >= 0));
|
(len > 0 && start_row >= 0 && start_col >= 0));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue