From 30bdc7445acfd4f52aef5bafc29678eaa6e851d9 Mon Sep 17 00:00:00 2001 From: NishiOwO Date: Tue, 2 Dec 2025 10:39:02 +0900 Subject: [PATCH] no more warning --- src/backend/gdi.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/backend/gdi.c b/src/backend/gdi.c index f466dfd..5d25ce4 100644 --- a/src/backend/gdi.c +++ b/src/backend/gdi.c @@ -501,7 +501,6 @@ static void MwLLDrawPixmapImpl(MwLL handle, MwRect* rect, MwLLPixmap pixmap) { static void MwLLSetIconImpl(MwLL handle, MwLLPixmap pixmap) { ICONINFO ii; - HICON ico; memset(&ii, 0, sizeof(ii)); ii.fIcon = TRUE; @@ -729,6 +728,9 @@ static void MwLLGetCursorCoordImpl(MwLL handle, MwPoint* point) { static void MwLLGetScreenSizeImpl(MwLL handle, MwRect* rect) { RECT rc; + + (void)handle; + GetClientRect(GetDesktopWindow(), &rc); rect->x = rect->y = 0;