version_win32: fix warning for CURL_WINDOWS_APP

The build version is not supported by the UWP code.

Closes https://github.com/curl/curl/pull/8385
This commit is contained in:
Marcel Raad 2022-02-04 10:06:47 +01:00
parent 60d076cee1
commit 9f1d29ecac
No known key found for this signature in database
GPG Key ID: 33C416EFAE4D6F02

View File

@ -76,6 +76,8 @@ bool curlx_verify_windows_version(const unsigned int majorVersion,
bool matched = FALSE;
#if defined(CURL_WINDOWS_APP)
(void)buildVersion;
/* We have no way to determine the Windows version from Windows apps,
so let's assume we're running on the target Windows version. */
const WORD fullVersion = MAKEWORD(minorVersion, majorVersion);