diff options
author | John Szakmeister <john@szakmeister.net> | 2015-03-13 15:34:45 -0400 |
---|---|---|
committer | John Szakmeister <john@szakmeister.net> | 2015-03-14 10:30:30 -0400 |
commit | 24f2504036289d7def265507524ab4a4dc58ddcc (patch) | |
tree | 16929b459491c93a6c195062bd74c5e727c43dfd | |
parent | 627d8e4dfe1cad467bb6f53c342a0bb34331ecfb (diff) | |
download | rneovim-24f2504036289d7def265507524ab4a4dc58ddcc.tar.gz rneovim-24f2504036289d7def265507524ab4a4dc58ddcc.tar.bz2 rneovim-24f2504036289d7def265507524ab4a4dc58ddcc.zip |
Fix unused variable in wstream.c for a release build.
-rw-r--r-- | src/nvim/os/wstream.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/nvim/os/wstream.c b/src/nvim/os/wstream.c index 6a650ce775..90d4ebeec8 100644 --- a/src/nvim/os/wstream.c +++ b/src/nvim/os/wstream.c @@ -116,9 +116,8 @@ void wstream_set_stream(WStream *wstream, uv_stream_t *stream) /// @param file The file descriptor void wstream_set_file(WStream *wstream, uv_file file) { - uv_handle_type type = uv_guess_handle(file); - - assert(type == UV_NAMED_PIPE || type == UV_TTY); + assert(uv_guess_handle(file) == UV_NAMED_PIPE || + uv_guess_handle(file) == UV_TTY); wstream->stream = xmalloc(sizeof(uv_pipe_t)); uv_pipe_init(uv_default_loop(), (uv_pipe_t *)wstream->stream, 0); uv_pipe_open((uv_pipe_t *)wstream->stream, file); |