Commit 750f2b4b authored by Jim Harris's avatar Jim Harris
Browse files

thread: fix set-but-unused warning



In release builds, the assert() is compiled out, making
it look like the rc value is never referenced after it's
set.

Signed-off-by: default avatarJim Harris <james.r.harris@intel.com>
Change-Id: I59305b0e928f2044146e30b7addc86f81e7a1d3f

Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/473472


Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarChangpeng Liu <changpeng.liu@intel.com>
Reviewed-by: default avatarBen Walker <benjamin.walker@intel.com>
parent e9be9df4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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) {