]> Sergey Matveev's repositories - nnn.git/commitdiff
silence ci warning
authorNRK <nrk@disroot.org>
Tue, 21 Nov 2023 14:50:45 +0000 (20:50 +0600)
committerNRK <nrk@disroot.org>
Tue, 21 Nov 2023 14:50:45 +0000 (20:50 +0600)
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)