summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2024-04-10 00:16:42 -0700
committerVito Caputo <vcaputo@pengaru.com>2024-04-10 00:16:42 -0700
commite857fdf9828267d8df859bcf3c88c3d88f12d462 (patch)
treecad0dc7d5e7509937661b6493467ba6efd6fb916
parent7e9dd58f14939a1f5f4526f9b11d1a2605de76e8 (diff)
setup: cast fgets() to return void
Another case of some compilers being upset about ignoring the return value, failing the build w/-Wall -Werror
-rw-r--r--src/setup.c2
1 files changed, 1 insertions, 1 deletions
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') {
© All Rights Reserved