From 60eabb6170c4dda86a92047af9e4034ac66b5b16 Mon Sep 17 00:00:00 2001 From: NRK Date: Tue, 21 Nov 2023 20:50:45 +0600 Subject: [PATCH] silence ci warning --- src/nnn.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/nnn.c b/src/nnn.c index 15b221d8..d8e33260 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -5185,7 +5185,8 @@ static void show_help(const char *path) } hex = *s == '\n'; } - if (write(fd, help_buf, w - help_buf)) {} // silence warning + ssize_t res = write(fd, help_buf, w - help_buf); + (void)res; // silence warning dprintf(fd, "\nLOCATIONS\n"); for (uchar_t i = 0; i < CTX_MAX; ++i)