diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2019-06-03 00:21:20 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2019-06-03 00:21:20 +0200 |
commit | f046f3a2396ea23e53e7307e8c143dc646f5273c (patch) | |
tree | dad141000d7fe420c0a6f0d7772c58fdc69e291a /src/nvim/msgpack_rpc/channel.c | |
parent | c0134660aba0d635845c217a4aaf3837d085665f (diff) | |
download | rneovim-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/msgpack_rpc/channel.c')
-rw-r--r-- | src/nvim/msgpack_rpc/channel.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nvim/msgpack_rpc/channel.c b/src/nvim/msgpack_rpc/channel.c index 2f3af22b65..c1ad3bd829 100644 --- a/src/nvim/msgpack_rpc/channel.c +++ b/src/nvim/msgpack_rpc/channel.c @@ -68,7 +68,8 @@ void rpc_start(Channel *channel) Stream *out = channel_outstream(channel); #if MIN_LOG_LEVEL <= DEBUG_LOG_LEVEL Stream *in = channel_instream(channel); - DLOG("rpc ch %" PRIu64 " in-stream=%p out-stream=%p", channel->id, in, out); + DLOG("rpc ch %" PRIu64 " in-stream=%p out-stream=%p", channel->id, + (void *)in, (void *)out); #endif rstream_start(out, receive_msgpack, channel); @@ -223,7 +224,7 @@ static void receive_msgpack(Stream *stream, RBuffer *rbuf, size_t c, size_t count = rbuffer_size(rbuf); DLOG("ch %" PRIu64 ": parsing %zu bytes from msgpack Stream: %p", - channel->id, count, stream); + channel->id, count, (void *)stream); // Feed the unpacker with data msgpack_unpacker_reserve_buffer(channel->rpc.unpacker, count); |