Browse Source

Fixed warning C4702: unreachable code

Sam Lantinga 1 year ago
parent
commit
aea44cff6b
1 changed files with 2 additions and 4 deletions
  1. 2 4
      src/stdlib/SDL_string.c

+ 2 - 4
src/stdlib/SDL_string.c

@@ -718,9 +718,8 @@ int SDL_wcscasecmp(const wchar_t *wstr1, const wchar_t *wstr2)
     UNICODE_STRCASECMP(32, 1, 1, (void) str1start, (void) str2start);  // always NULL-terminated, no need to adjust lengths.
 #else
     #error Unexpected wchar_t size
-#endif
-
     return -1;
+#endif
 }
 
 int SDL_wcsncasecmp(const wchar_t *wstr1, const wchar_t *wstr2, size_t maxlen)
@@ -738,9 +737,8 @@ int SDL_wcsncasecmp(const wchar_t *wstr1, const wchar_t *wstr2, size_t maxlen)
     UNICODE_STRCASECMP(32, slen1, slen2, slen1 -= (size_t) (str1 - str1start), slen2 -= (size_t) (str2 - str2start));
 #else
     #error Unexpected wchar_t size
-#endif
-
     return -1;
+#endif
 }
 
 long SDL_wcstol(const wchar_t *string, wchar_t **endp, int base)