From bcdb644bceb90ea575285773828d04c2cbd18fc0 Mon Sep 17 00:00:00 2001 From: pstef <3462925+pstef@users.noreply.github.com> Date: Wed, 9 Apr 2025 16:21:11 +0000 Subject: [PATCH] Silence a discarded-qualifiers warning waitUntilDeviceIsReady() should take a const char pointer as a parameter, because it doesn't use it for writing. Since the function prototype asks for a char pointer, cast it here. --- frontend/drivers/platform_ps2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/drivers/platform_ps2.c b/frontend/drivers/platform_ps2.c index 3e2b242ab0..f8e7e9b897 100644 --- a/frontend/drivers/platform_ps2.c +++ b/frontend/drivers/platform_ps2.c @@ -343,7 +343,7 @@ static void frontend_ps2_exec(const char *path, bool should_load_game) deinit_drivers(true, true); reset_IOP(); common_init_drivers(false); - waitUntilDeviceIsReady(path); + waitUntilDeviceIsReady((char *)path); #ifndef IS_SALAMANDER char game_path[FILENAME_MAX];