aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2016-08-27 18:08:16 +0200
committerDaniel Stenberg <daniel@haxx.se>2016-08-27 18:08:16 +0200
commita6ddd6555e02bb3114e3d193f7474c402269a040 (patch)
tree2bb715feb02789163554f9c853c022742d4f9586
parent8a529ef01d73efbf3d9af82dbb0db88b48f197b1 (diff)
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.
-rw-r--r--lib/system_win32.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/system_win32.c b/lib/system_win32.c
index d6a998b27..effc3f2bc 100644
--- a/lib/system_win32.c
+++ b/lib/system_win32.c
@@ -128,7 +128,7 @@ bool Curl_verify_windows_version(const unsigned int majorVersion,
}
/* Verify the platform identifier (if necessary) */
- if(matched && platform != PLATFORM_DONT_CARE) {
+ if(matched) {
switch(platform) {
case PLATFORM_WINDOWS:
if(osver.dwPlatformId != VER_PLATFORM_WIN32_WINDOWS)
@@ -138,6 +138,9 @@ bool Curl_verify_windows_version(const unsigned int majorVersion,
case PLATFORM_WINNT:
if(osver.dwPlatformId != VER_PLATFORM_WIN32_NT)
matched = FALSE;
+
+ default: /* like platform == PLATFORM_DONT_CARE */
+ break;
}
}
}