From 5860408a19d956f8cebb7ae39cfdbfcebd5e6360 Mon Sep 17 00:00:00 2001 From: Jon TURNEY Date: Wed, 3 Apr 2013 18:43:26 +0100 Subject: [PATCH] hw/xwin: Fix unused-but-set-variable warning in ProcWindowsWMFrameGetRect() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit /jhbuild/checkout/xorg/xserver/hw/xwin/winwindowswm.c: In function ‘ProcWindowsWMFrameGetRect’: /jhbuild/checkout/xorg/xserver/hw/xwin/winwindowswm.c:322:12: error: variable ‘ir’ set but not used [-Werror=unused-but-set-variable] Signed-off-by: Jon TURNEY Reviewed-by: Colin Harrison --- hw/xwin/winwindowswm.c | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/hw/xwin/winwindowswm.c b/hw/xwin/winwindowswm.c index fbd41aaa8..6e9d63c53 100644 --- a/hw/xwin/winwindowswm.c +++ b/hw/xwin/winwindowswm.c @@ -66,18 +66,6 @@ typedef struct _WMEvent { unsigned int mask; } WMEventRec; -static inline BoxRec -make_box(int x, int y, int w, int h) -{ - BoxRec r; - - r.x1 = x; - r.y1 = y; - r.x2 = x + w; - r.y2 = y + h; - return r; -} - static int ProcWindowsWMQueryVersion(ClientPtr client) { @@ -319,7 +307,6 @@ static int ProcWindowsWMFrameGetRect(ClientPtr client) { xWindowsWMFrameGetRectReply rep; - BoxRec ir; RECT rcNew; REQUEST(xWindowsWMFrameGetRectReq); @@ -334,8 +321,6 @@ ProcWindowsWMFrameGetRect(ClientPtr client) rep.length = 0; rep.sequenceNumber = client->sequence; - ir = make_box(stuff->ix, stuff->iy, stuff->iw, stuff->ih); - if (stuff->frame_rect != 0) { ErrorF("ProcWindowsWMFrameGetRect - stuff->frame_rect != 0\n"); return BadValue;