From 5bd8c389a3625e5c3eed265942d4c5b1e7e5d117 Mon Sep 17 00:00:00 2001 From: Marcel Raad Date: Sun, 8 Jul 2018 16:44:32 +0200 Subject: examples: fix -Wformat warnings When size_t is not a typedef for unsigned long (as usually the case on Windows), GCC emits -Wformat warnings when using lu and lx format specifiers with size_t. Silence them with explicit casts to unsigned long. Closes https://github.com/curl/curl/pull/2721 --- docs/examples/getinmemory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/examples/getinmemory.c') diff --git a/docs/examples/getinmemory.c b/docs/examples/getinmemory.c index 776bbd21a..f5e8942f8 100644 --- a/docs/examples/getinmemory.c +++ b/docs/examples/getinmemory.c @@ -100,7 +100,7 @@ int main(void) * Do something nice with it! */ - printf("%lu bytes retrieved\n", chunk.size); + printf("%lu bytes retrieved\n", (unsigned long)chunk.size); } /* cleanup curl stuff */ -- cgit v1.2.3