aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Szakmeister <john@szakmeister.net>2015-03-13 15:34:37 -0400
committerJohn Szakmeister <john@szakmeister.net>2015-03-13 15:34:37 -0400
commit627d8e4dfe1cad467bb6f53c342a0bb34331ecfb (patch)
treea565d087d691beba8cb053922cc1fef0058046f0
parentc015eabe13bd37fb7d129da20904dd172b0bd3a1 (diff)
downloadrneovim-627d8e4dfe1cad467bb6f53c342a0bb34331ecfb.tar.gz
rneovim-627d8e4dfe1cad467bb6f53c342a0bb34331ecfb.tar.bz2
rneovim-627d8e4dfe1cad467bb6f53c342a0bb34331ecfb.zip
Avoid an unused variable warning in the release build.
-rw-r--r--src/nvim/msgpack_rpc/channel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/msgpack_rpc/channel.c b/src/nvim/msgpack_rpc/channel.c
index 00b8cd072f..25d41e7328 100644
--- a/src/nvim/msgpack_rpc/channel.c
+++ b/src/nvim/msgpack_rpc/channel.c
@@ -338,12 +338,12 @@ static void job_err(RStream *rstream, void *data, bool eof)
{
size_t count;
char buf[256];
- Channel *channel = job_data(data);
while ((count = rstream_pending(rstream))) {
size_t read = rstream_read(rstream, buf, sizeof(buf) - 1);
buf[read] = NUL;
- ELOG("Channel %" PRIu64 " stderr: %s", channel->id, buf);
+ ELOG("Channel %" PRIu64 " stderr: %s",
+ ((Channel *)job_data(data))->id, buf);
}
}