Fixed warning C4702: unreachable code

main
Sam Lantinga 2024-04-01 14:30:11 -07:00
parent 85b7f131b0
commit aea44cff6b
1 changed files with 2 additions and 4 deletions

View File

@ -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. UNICODE_STRCASECMP(32, 1, 1, (void) str1start, (void) str2start); // always NULL-terminated, no need to adjust lengths.
#else #else
#error Unexpected wchar_t size #error Unexpected wchar_t size
#endif
return -1; return -1;
#endif
} }
int SDL_wcsncasecmp(const wchar_t *wstr1, const wchar_t *wstr2, size_t maxlen) 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)); UNICODE_STRCASECMP(32, slen1, slen2, slen1 -= (size_t) (str1 - str1start), slen2 -= (size_t) (str2 - str2start));
#else #else
#error Unexpected wchar_t size #error Unexpected wchar_t size
#endif
return -1; return -1;
#endif
} }
long SDL_wcstol(const wchar_t *string, wchar_t **endp, int base) long SDL_wcstol(const wchar_t *string, wchar_t **endp, int base)