diff --git a/lib/thread/thread.c b/lib/thread/thread.c index ff519983b..4c4b5da5a 100644 --- a/lib/thread/thread.c +++ b/lib/thread/thread.c @@ -1119,6 +1119,7 @@ busy_poller_set_interrupt_mode(struct spdk_poller *poller, void *cb_arg, bool in { int busy_efd = poller->interruptfd; uint64_t notify = 1; + int rc __attribute__((unused)); assert(busy_efd >= 0); @@ -1129,7 +1130,7 @@ busy_poller_set_interrupt_mode(struct spdk_poller *poller, void *cb_arg, bool in } } else { /* Read on eventfd will clear its level triggering. */ - read(busy_efd, ¬ify, sizeof(notify)); + rc = read(busy_efd, ¬ify, sizeof(notify)); } }