mirror of
https://github.com/neovim/neovim.git
synced 2024-12-26 14:11:15 -07:00
Avoid an unused variable warning in the release build.
This commit is contained in:
parent
c015eabe13
commit
627d8e4dfe
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user