From 9137e82c9afa91f0c0647c70719b6f0e81d73324 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Deuc=D0=B5?= <shurd@sasktel.net> Date: Thu, 4 May 2023 10:21:39 -0400 Subject: [PATCH] Fix warnings reported by Digitalman --- src/conio/sdl_con.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/conio/sdl_con.c b/src/conio/sdl_con.c index 3e9fbe3e49..55a9656757 100644 --- a/src/conio/sdl_con.c +++ b/src/conio/sdl_con.c @@ -357,7 +357,6 @@ internal_scaling_factors(int *x, int *y, struct video_stats *vs) static int sdl_init_mode(int mode, bool init) { - int oldcols; int w, h; SDL_Rect r; @@ -373,7 +372,6 @@ static int sdl_init_mode(int mode, bool init) sdl_user_func(SDL_USEREVENT_FLUSH); pthread_mutex_lock(&vstatlock); - oldcols = vstat.cols; if (sdl.GetDisplayUsableBounds(0, &r) == 0) { w = r.w; h = r.h; @@ -1156,8 +1154,8 @@ void sdl_video_event_thread(void *data) sdl_mode = false; pthread_mutex_unlock(&sdl_mode_mutex); - cvstat.winwidth = ev.user.data1; - cvstat.winheight = ev.user.data2; + cvstat.winwidth = (int)ev.user.data1; + cvstat.winheight = (int)ev.user.data2; internal_setwinsize(&cvstat, true); sdl_ufunc_retval=0; sem_post(&sdl_ufunc_ret); -- GitLab