# HG changeset patch # User Matti Hamalainen # Date 1578339073 -7200 # Node ID a1dac9eb3f06f4fcd53e1d4a816a01d5efaf28a6 # Parent 7cb58b68367718420ec068c92a8ee163d4cf4eb6 Typecast to void* to silence a silly clang-9 warning. diff -r 7cb58b683677 -r a1dac9eb3f06 Makefile.gen --- a/Makefile.gen Mon Jan 06 21:28:47 2020 +0200 +++ b/Makefile.gen Mon Jan 06 21:31:13 2020 +0200 @@ -1,5 +1,5 @@ CFLAGS += -W -Wall -Wextra -D_XOPEN_SOURCE=500 -I./ -#CFLAGS += -std=c11 -pedantic +CFLAGS += -std=c99 -pedantic CFLAGS += -g CFLAGS += -O2 CFLAGS += -DTH_USE_INTERNAL_SPRINTF=1 diff -r 7cb58b683677 -r a1dac9eb3f06 th_network.c --- 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;)