1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 08:08:50 -05:00

Curl_verify_windows_version: minor edit to avoid compiler warnings

... instead of if() before the switch(), add a default to the switch so
that the compilers don't warn on "warning: enumeration value
'PLATFORM_DONT_CARE' not handled in switch" anymore.
This commit is contained in:
Daniel Stenberg 2016-08-27 18:08:16 +02:00
parent 8a529ef01d
commit a6ddd6555e

View File

@ -128,7 +128,7 @@ bool Curl_verify_windows_version(const unsigned int majorVersion,
} }
/* Verify the platform identifier (if necessary) */ /* Verify the platform identifier (if necessary) */
if(matched && platform != PLATFORM_DONT_CARE) { if(matched) {
switch(platform) { switch(platform) {
case PLATFORM_WINDOWS: case PLATFORM_WINDOWS:
if(osver.dwPlatformId != VER_PLATFORM_WIN32_WINDOWS) if(osver.dwPlatformId != VER_PLATFORM_WIN32_WINDOWS)
@ -138,6 +138,9 @@ bool Curl_verify_windows_version(const unsigned int majorVersion,
case PLATFORM_WINNT: case PLATFORM_WINNT:
if(osver.dwPlatformId != VER_PLATFORM_WIN32_NT) if(osver.dwPlatformId != VER_PLATFORM_WIN32_NT)
matched = FALSE; matched = FALSE;
default: /* like platform == PLATFORM_DONT_CARE */
break;
} }
} }
} }