From 08d327e92c967f75e024d8a3b0dc8399ab2c0156 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20Michaj=C5=82ow?= Date: Wed, 5 Nov 2025 18:50:29 +0100 Subject: [PATCH] fftools/ffmpeg: suppress unused variable warning, but using it MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Kacper Michajłow --- fftools/ffmpeg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c index 32289112a8..444d027c15 100644 --- a/fftools/ffmpeg.c +++ b/fftools/ffmpeg.c @@ -250,7 +250,7 @@ void term_init(void) /* read a key without blocking */ static int read_key(void) { - unsigned char ch; + unsigned char ch = -1; #if HAVE_TERMIOS_H int n = 1; struct timeval tv; @@ -297,7 +297,7 @@ static int read_key(void) if(kbhit()) return(getch()); #endif - return -1; + return ch; } static int decode_interrupt_cb(void *ctx)