From 547d38448d09a6227efdd335f4615c9716a0312d Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Thu, 3 Apr 2025 11:29:13 +0200 Subject: [PATCH] (1889) xwin: fix int size mismatch MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit > ../hw/xwin/winshadgdi.c: In function ‘winBltExposedWindowRegionShadowGDI’: > ../hw/xwin/winshadgdi.c:866:78: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘DWORD’ {aka ‘long unsigned int’} [-Wformat=] > 866 | ErrorF("winBltExposedWindowRegionShadowGDI - BitBlt failed: 0x%08x\n", > | ~~~^ > | | > | unsigned int > | %08lx > 867 | GetLastError()); > | ~~~~~~~~~~~~~~ > | | > | DWORD {aka long unsigned int} Signed-off-by: Enrico Weigelt, metux IT consult --- hw/xwin/winshadgdi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/xwin/winshadgdi.c b/hw/xwin/winshadgdi.c index cf8391413..89207114a 100644 --- a/hw/xwin/winshadgdi.c +++ b/hw/xwin/winshadgdi.c @@ -862,7 +862,7 @@ winBltExposedWindowRegionShadowGDI(ScreenPtr pScreen, WindowPtr pWin) ps.rcPaint.top + pWin->borderWidth, SRCCOPY)) ErrorF("winBltExposedWindowRegionShadowGDI - BitBlt failed: 0x%08x\n", - GetLastError()); + (unsigned int)GetLastError()); /* Release DC */ DeleteDC(hdcPixmap);