From aea44cff6be99063be4072421dc9adafe559aac9 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Mon, 1 Apr 2024 14:30:11 -0700 Subject: [PATCH] Fixed warning C4702: unreachable code --- src/stdlib/SDL_string.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/stdlib/SDL_string.c b/src/stdlib/SDL_string.c index 4f9b1593e..cc0923016 100644 --- a/src/stdlib/SDL_string.c +++ b/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)