From c3b5fa82bec9e84db9028df65e47793b21e11851 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Tue, 27 Aug 2019 19:58:31 +0200 Subject: [PATCH] search: 'len' is unused in release builds (it's only used in an assert) --- search.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/search.c b/search.c index 48b45b9a..37ab5684 100644 --- a/search.c +++ b/search.c @@ -54,7 +54,7 @@ search_update(struct terminal *term) int start_row = term->search.match.row; 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) || (len > 0 && start_row >= 0 && start_col >= 0));