Skip to content

Commit eb53121

Browse files
authored
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: #52405 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Mohammed Keyvanzadeh <[email protected]> Reviewed-By: Yagiz Nizipli <[email protected]>
1 parent a760dad commit eb53121

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Diff for: test/overlapped-checker/main_win.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
static char buf[256];
88
static DWORD read_count;
9-
static DWORD write_count;
109
static HANDLE stdin_h;
1110
static OVERLAPPED stdin_o;
1211

@@ -34,7 +33,7 @@ static void write(const char* buf, size_t buf_size) {
3433
if (!WriteFile(stdout_h, buf, buf_size, &write_count, NULL)) {
3534
die("overlapped write failed");
3635
}
37-
fprintf(stderr, "%d", write_count);
36+
fprintf(stderr, "%ld", write_count);
3837
fflush(stderr);
3938
}
4039

0 commit comments

Comments
 (0)