diff th_network.c @ 564:a1dac9eb3f06

Typecast to void* to silence a silly clang-9 warning.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 06 Jan 2020 21:31:13 +0200
parents 3a852e9f70a6
children 423a8ace2598
line wrap: on
line diff
--- a/th_network.c	Mon Jan 06 21:28:47 2020 +0200
+++ b/th_network.c	Mon Jan 06 21:31:13 2020 +0200
@@ -945,7 +945,8 @@
     "err=%d, status=%d, got_bytes=%" PRIu_SIZE_T ", total_bytes=%" PRIu_SIZE_T "\n"
     "buf=0x%p, in_ptr=0x%04" PRIx_SIZE_T ", ptr=0x%04" PRIx_SIZE_T "\n",
     conn->err, conn->status, conn->base.got_bytes, conn->base.total_bytes,
-    conn->base.buf, conn->base.in_ptr - conn->base.buf, conn->base.ptr - conn->base.buf);
+    (void *) conn->base.buf,
+    conn->base.in_ptr - conn->base.buf, conn->base.ptr - conn->base.buf);
 
     // Dump buffer contents as a hexdump
     for (offs = 0, left = conn->base.total_bytes, p = conn->base.buf; p < conn->base.in_ptr;)