From 2f153f801ae127bd2ee1d11153cca43b8e633d20 Mon Sep 17 00:00:00 2001
From: Wouter Wijsman <[EMAIL REDACTED]>
Date: Sat, 4 Jul 2026 20:06:52 +0200
Subject: [PATCH] PSP: Fix compiler warnings in PSP_ShowScreenKeyboard
---
src/video/psp/SDL_pspvideo.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/video/psp/SDL_pspvideo.c b/src/video/psp/SDL_pspvideo.c
index 91fa0ee63b612..cd7eb6ef1e301 100644
--- a/src/video/psp/SDL_pspvideo.c
+++ b/src/video/psp/SDL_pspvideo.c
@@ -395,7 +395,6 @@ bool PSP_HasScreenKeyboardSupport(SDL_VideoDevice *_this)
void PSP_ShowScreenKeyboard(SDL_VideoDevice *_this, SDL_Window *window, SDL_PropertiesID props)
{
char list[0x20000] __attribute__((aligned(64))); // Needed for sceGuStart to work
- int i = 0;
int done = 0;
int input_text_length = 128;
void *received_text = SDL_calloc(input_text_length, sizeof(Uint16));
@@ -499,7 +498,7 @@ void PSP_ShowScreenKeyboard(SDL_VideoDevice *_this, SDL_Window *window, SDL_Prop
// Convert input list to strings
iconv = SDL_iconv_open("UTF-8", "UCS-2-INTERNAL");
- if (iconv == SDL_ICONV_ERROR) {
+ if ((size_t)iconv == SDL_ICONV_ERROR) {
SDL_Log("Error: Failed to open iconv for ucs-2-internal conversion to utf-8");
SDL_free(string_to_send);
SDL_free(received_text_start);