]> Sergey Matveev's repositories - nnn.git/blobdiff - src/nnn.c
silence ci warning
[nnn.git] / src / nnn.c
index 15b221d80372fdb02730886bc1f1cc128021516b..d8e332602e48cb99ea932b459c5ca2dc9d654c97 100644 (file)
--- 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)