Skip to content
Snippets Groups Projects
Commit 9137e82c authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Fix warnings reported by Digitalman

parent 30d6fcea
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #4204 passed
...@@ -357,7 +357,6 @@ internal_scaling_factors(int *x, int *y, struct video_stats *vs) ...@@ -357,7 +357,6 @@ internal_scaling_factors(int *x, int *y, struct video_stats *vs)
static int sdl_init_mode(int mode, bool init) static int sdl_init_mode(int mode, bool init)
{ {
int oldcols;
int w, h; int w, h;
SDL_Rect r; SDL_Rect r;
...@@ -373,7 +372,6 @@ static int sdl_init_mode(int mode, bool init) ...@@ -373,7 +372,6 @@ static int sdl_init_mode(int mode, bool init)
sdl_user_func(SDL_USEREVENT_FLUSH); sdl_user_func(SDL_USEREVENT_FLUSH);
pthread_mutex_lock(&vstatlock); pthread_mutex_lock(&vstatlock);
oldcols = vstat.cols;
if (sdl.GetDisplayUsableBounds(0, &r) == 0) { if (sdl.GetDisplayUsableBounds(0, &r) == 0) {
w = r.w; w = r.w;
h = r.h; h = r.h;
...@@ -1156,8 +1154,8 @@ void sdl_video_event_thread(void *data) ...@@ -1156,8 +1154,8 @@ void sdl_video_event_thread(void *data)
sdl_mode = false; sdl_mode = false;
pthread_mutex_unlock(&sdl_mode_mutex); pthread_mutex_unlock(&sdl_mode_mutex);
cvstat.winwidth = ev.user.data1; cvstat.winwidth = (int)ev.user.data1;
cvstat.winheight = ev.user.data2; cvstat.winheight = (int)ev.user.data2;
internal_setwinsize(&cvstat, true); internal_setwinsize(&cvstat, true);
sdl_ufunc_retval=0; sdl_ufunc_retval=0;
sem_post(&sdl_ufunc_ret); sem_post(&sdl_ufunc_ret);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment