mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-04-24 21:05:40 +02:00
main: poll() return value is unused in release builds
Because it's only used in an assert()
This commit is contained in:
parent
deb9105d3e
commit
785fe8bb0c
1 changed files with 1 additions and 1 deletions
2
main.c
2
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
|
||||
|
|
Loading…
Add table
Reference in a new issue