From: Marcel Raad Date: Fri, 4 Feb 2022 09:06:47 +0000 (+0100) Subject: version_win32: fix warning for `CURL_WINDOWS_APP` X-Git-Tag: curl-7_82_0~126 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9f1d29ecacffe3e94349bcef6e9fafa62b1cc431;p=thirdparty%2Fcurl.git 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 --- diff --git a/lib/version_win32.c b/lib/version_win32.c index 79a2aa6ab4..a1eb72c9df 100644 --- a/lib/version_win32.c +++ b/lib/version_win32.c @@ -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);