From e857fdf9828267d8df859bcf3c88c3d88f12d462 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Wed, 10 Apr 2024 00:16:42 -0700 Subject: setup: cast fgets() to return void Another case of some compilers being upset about ignoring the return value, failing the build w/-Wall -Werror --- src/setup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/setup.c b/src/setup.c index 6812795..7b5cecb 100644 --- a/src/setup.c +++ b/src/setup.c @@ -146,7 +146,7 @@ int setup_interactively(til_settings_t *settings, int (*setup_func)(const til_se if (feof(stdin)) return -EIO; - fgets(buf, sizeof(buf), stdin); + (void) fgets(buf, sizeof(buf), stdin); } if (*buf == '\n') { -- cgit v1.2.1