diff --git a/src/win/process-stdio.c b/src/win/process-stdio.c index 89d9c4d2..bd78f3fa 100644 --- a/src/win/process-stdio.c +++ b/src/win/process-stdio.c @@ -215,7 +215,8 @@ int uv__stdio_create(uv_loop_t* loop, * handles in the stdio buffer are initialized with. * INVALID_HANDLE_VALUE, which should be okay. */ if (i <= 2) { - HANDLE nul; + /* Redundantly initialize to make the compiler happy. */ + HANDLE nul = INVALID_HANDLE_VALUE; DWORD access = (i == 0) ? FILE_GENERIC_READ : FILE_GENERIC_WRITE | FILE_READ_ATTRIBUTES; diff --git a/src/win/util.c b/src/win/util.c index e0dba1aa..98ea9d6d 100644 --- a/src/win/util.c +++ b/src/win/util.c @@ -509,7 +509,7 @@ unsigned int uv_available_parallelism(void) { DWORD_PTR procmask; DWORD_PTR sysmask; int count; - int i; + unsigned int i; /* TODO(bnoordhuis) Use GetLogicalProcessorInformationEx() to support systems * with > 64 CPUs? See https://github.com/libuv/libuv/pull/3458