From 785fe8bb0c35af702e284303d0c1445e5978d584 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Tue, 29 Jan 2019 21:38:21 +0100 Subject: [PATCH] main: poll() return value is unused in release builds Because it's only used in an assert() --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.c b/main.c index 8a35854..5def04c 100644 --- a/main.c +++ b/main.c @@ -130,7 +130,7 @@ main(int argc, const char *const *argv) while (!aborted) { struct pollfd fds[] = {{.fd = abort_fd, .events = POLLIN}}; - int r = poll(fds, 1, -1); + int r __attribute__((unused)) = poll(fds, 1, -1); /* * Either the bar aborted (triggering the abort_fd), or user