test: fix -Wformat warning
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 <info@bnoordhuis.nl> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
This commit is contained in:
parent
c355c8b1a6
commit
309d603382
@ -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();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user