diff --git a/lib/thread/thread.c b/lib/thread/thread.c index cf3c7d6ca..b22b9c309 100644 --- a/lib/thread/thread.c +++ b/lib/thread/thread.c @@ -1199,7 +1199,7 @@ spdk_for_each_channel(void *io_device, spdk_channel_msg fn, void *ctx, struct spdk_thread *thread; struct spdk_io_channel *ch; struct spdk_io_channel_iter *i; - int rc; + int rc __attribute__((unused)); i = calloc(1, sizeof(*i)); if (!i) {