Mercurial > hg > th-libs
changeset 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 | 7cb58b683677 |
children | a0fdf52ab186 |
files | Makefile.gen th_network.c |
diffstat | 2 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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
--- 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;)