From e5bf1850f58333330795ccc6c0a8f2ccda69d9c1 Mon Sep 17 00:00:00 2001 From: Manuel Alfayate Corchete Date: Fri, 8 Jan 2021 15:39:05 +0100 Subject: [PATCH] [KMS/DRM] Fix cpmpilation warnings. Thanks to Ozkan Sezer for pointing this out! --- src/video/kmsdrm/SDL_kmsdrmmouse.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/video/kmsdrm/SDL_kmsdrmmouse.c b/src/video/kmsdrm/SDL_kmsdrmmouse.c index 1546c7c2b..aadd503bd 100644 --- a/src/video/kmsdrm/SDL_kmsdrmmouse.c +++ b/src/video/kmsdrm/SDL_kmsdrmmouse.c @@ -239,7 +239,7 @@ KMSDRM_ShowCursor(SDL_Cursor * cursor) uint32_t pixel; int i,j; - int ret; + int ret = 0; mouse = SDL_GetMouse(); if (!mouse) { @@ -404,7 +404,6 @@ KMSDRM_DeinitMouse(_THIS) SDL_VideoDevice *video_device = SDL_GetVideoDevice(); SDL_DisplayData *dispdata = (SDL_DisplayData *)SDL_GetDisplayDriverData(0); KMSDRM_PlaneInfo info = {0}; - SDL_Mouse *mouse = SDL_GetMouse(); /* 1- Destroy the curso GBM BO. */ if (video_device && dispdata->cursor_bo) {