]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
version_win32: fix warning for `CURL_WINDOWS_APP`
authorMarcel Raad <Marcel.Raad@teamviewer.com>
Fri, 4 Feb 2022 09:06:47 +0000 (10:06 +0100)
committerMarcel Raad <Marcel.Raad@teamviewer.com>
Fri, 4 Feb 2022 16:34:27 +0000 (17:34 +0100)
The build version is not supported by the UWP code.

Closes https://github.com/curl/curl/pull/8385

lib/version_win32.c

index 79a2aa6ab456ba6bef319cb5961a279e074ce26f..a1eb72c9df690aa39803b494e44105300ac87a0b 100644 (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);