main: poll() return value is unused in release builds

Because it's only used in an assert()
This commit is contained in:
Daniel Eklöf 2019-01-29 21:38:21 +01:00
parent deb9105d3e
commit 785fe8bb0c

2
main.c
View file

@ -130,7 +130,7 @@ main(int argc, const char *const *argv)
while (!aborted) { while (!aborted) {
struct pollfd fds[] = {{.fd = abort_fd, .events = POLLIN}}; 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 * Either the bar aborted (triggering the abort_fd), or user