From 309d603382159eacdf52cbf0fa936deb60552d32 Mon Sep 17 00:00:00 2001 From: Santiago Gimeno Date: Tue, 7 Feb 2017 18:03:20 +0100 Subject: [PATCH] test: fix -Wformat warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Substitute the `z` length modifier with `l` to avoid warnings, as the `z` modifier is defined in the C99 standard. PR-URL: https://github.com/libuv/libuv/pull/1220 Reviewed-By: Ben Noordhuis Reviewed-By: Colin Ihrig Reviewed-By: Saúl Ibarra Corretgé --- test/test-threadpool-cancel.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/test-threadpool-cancel.c b/test/test-threadpool-cancel.c index 917f5f47..dd13d8ae 100644 --- a/test/test-threadpool-cancel.c +++ b/test/test-threadpool-cancel.c @@ -60,7 +60,10 @@ static void saturate_threadpool(void) { char buf[64]; size_t i; - snprintf(buf, sizeof(buf), "UV_THREADPOOL_SIZE=%zu", ARRAY_SIZE(pause_reqs)); + snprintf(buf, + sizeof(buf), + "UV_THREADPOOL_SIZE=%lu", + (unsigned long)ARRAY_SIZE(pause_reqs)); putenv(buf); loop = uv_default_loop();