From eb53121b7787e07755ca649f2d7160f3d68f41d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Zasso?= Date: Wed, 10 Apr 2024 23:08:06 +0200 Subject: [PATCH] test: fix Windows compiler warnings in overlapped-checker Fixes two warnings: - test\overlapped-checker\main_win.c(37,25): warning : format specifies type 'int' but the argument has type 'DWORD' (aka 'unsigned long') [-Wformat] - test\overlapped-checker\main_win.c(9,14): warning : unused variable 'write_count' [-Wunused-variable] PR-URL: https://github.com/nodejs/node/pull/52405 Reviewed-By: Richard Lau Reviewed-By: Mohammed Keyvanzadeh Reviewed-By: Yagiz Nizipli --- test/overlapped-checker/main_win.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/overlapped-checker/main_win.c b/test/overlapped-checker/main_win.c index c38b7febe6ddc5..60285cf7288fe3 100644 --- a/test/overlapped-checker/main_win.c +++ b/test/overlapped-checker/main_win.c @@ -6,7 +6,6 @@ static char buf[256]; static DWORD read_count; -static DWORD write_count; static HANDLE stdin_h; static OVERLAPPED stdin_o; @@ -34,7 +33,7 @@ static void write(const char* buf, size_t buf_size) { if (!WriteFile(stdout_h, buf, buf_size, &write_count, NULL)) { die("overlapped write failed"); } - fprintf(stderr, "%d", write_count); + fprintf(stderr, "%ld", write_count); fflush(stderr); }