test: fix compiler warning

PR-URL: https://github.com/libuv/libuv/pull/2992
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
Vladimír Čunát 2020-09-09 22:23:04 +02:00 committed by cjihrig
parent f4af7ff2d4
commit c4e50d9ff5
No known key found for this signature in database
GPG Key ID: 7434390BDBE9B9C5

View File

@ -100,13 +100,13 @@ static void connect_local_cb(uv_connect_t* req, int status) {
connect_cb_called++;
}
static int is_supported_system() {
static int is_supported_system(void) {
int semver[3];
int min_semver[3] = {10, 0, 16299};
int cnt;
uv_utsname_t uname;
ASSERT_EQ(uv_os_uname(&uname), 0);
if (strcmp(uname.sysname, "Windows_NT") == 0) {
if (strcmp(uname.sysname, "Windows_NT") == 0) {
cnt = sscanf(uname.release, "%d.%d.%d", &semver[0], &semver[1], &semver[2]);
if (cnt != 3) {
return 0;