aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/event/stream.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2019-06-03 00:21:20 +0200
committerJustin M. Keyes <justinkz@gmail.com>2019-06-03 00:21:20 +0200
commitf046f3a2396ea23e53e7307e8c143dc646f5273c (patch)
treedad141000d7fe420c0a6f0d7772c58fdc69e291a /src/nvim/event/stream.c
parentc0134660aba0d635845c217a4aaf3837d085665f (diff)
downloadrneovim-f046f3a2396ea23e53e7307e8c143dc646f5273c.tar.gz
rneovim-f046f3a2396ea23e53e7307e8c143dc646f5273c.tar.bz2
rneovim-f046f3a2396ea23e53e7307e8c143dc646f5273c.zip
build: fix some warnings
../src/nvim/event/rstream.c:119:44: warning: format specifies type 'void *' but the argument has type 'Stream *' (aka 'struct stream *') [-Wformat-pedantic] DLOG("Closing Stream (%p): %s (%s)", stream, ~~ ^~~~~~ ../src/nvim/event/stream.c:95:30: warning: format specifies type 'void *' but the argument has type 'Stream *' (aka 'struct stream *') [-Wformat-pedantic] DLOG("closing Stream: %p", stream); ~~ ^~~~~~ ../src/nvim/msgpack_rpc/channel.c:71:72: warning: format specifies type 'void *' but the argument has type 'Stream *' (aka 'struct stream *') [-Wformat-pedantic] DLOG("rpc ch %" PRIu64 " in-stream=%p out-stream=%p", channel->id, in, out); ~~ ^~ ../src/nvim/msgpack_rpc/channel.c:71:76: warning: format specifies type 'void *' but the argument has type 'Stream *' (aka 'struct stream *') [-Wformat-pedantic] DLOG("rpc ch %" PRIu64 " in-stream=%p out-stream=%p", channel->id, in, out); ~~ ^~~ ../src/nvim/msgpack_rpc/channel.c:226:28: warning: format specifies type 'void *' but the argument has type 'Stream *' (aka 'struct stream *') [-Wformat-pedantic] channel->id, count, stream); ^~~~~~
Diffstat (limited to 'src/nvim/event/stream.c')
-rw-r--r--src/nvim/event/stream.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/event/stream.c b/src/nvim/event/stream.c
index 70b1d890d6..7aaac0b03b 100644
--- a/src/nvim/event/stream.c
+++ b/src/nvim/event/stream.c
@@ -92,7 +92,7 @@ void stream_close(Stream *stream, stream_close_cb on_stream_close, void *data)
FUNC_ATTR_NONNULL_ARG(1)
{
assert(!stream->closed);
- DLOG("closing Stream: %p", stream);
+ DLOG("closing Stream: %p", (void *)stream);
stream->closed = true;
stream->close_cb = on_stream_close;
stream->close_cb_data = data;