From f046f3a2396ea23e53e7307e8c143dc646f5273c Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Mon, 3 Jun 2019 00:21:20 +0200 Subject: 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); ^~~~~~ --- src/nvim/msgpack_rpc/channel.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/nvim/msgpack_rpc/channel.c') 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); -- cgit