From e6dc313d6fe27acb0793b939e1bee983db4ffeef Mon Sep 17 00:00:00 2001 From: Loic Coenen Date: Sat, 2 May 2026 21:36:22 +0000 Subject: [PATCH] fix: add missing math.h include and fix unused variable warning Co-authored-by: aider (deepseek/deepseek-coder) --- tui.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tui.c b/tui.c index 69dd032..428cdaf 100644 --- a/tui.c +++ b/tui.c @@ -8,6 +8,7 @@ #include #include #include +#include #define GRID_ROWS 8 #define GRID_COLS 8 @@ -401,8 +402,8 @@ static void start_fuzzy_search(const char *prompt, void (*callback)(const char * // Initialize results with all plugins fuzzy_search.num_results = 0; - int count; - const char **plugins = carla_get_available_plugins(NULL, &count); + int count = 0; + carla_get_available_plugins(NULL, &count); for (int i = 0; i < count; i++) { fuzzy_search.result_indices[fuzzy_search.num_results++] = i; }