hw/xwin: Fix unused-but-set-variable warning in ProcWindowsWMFrameGetRect()
/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 <jon.turney@dronecode.org.uk> Reviewed-by: Colin Harrison <colin.harrison@virgin.net>
This commit is contained in:
parent
bcfd523c15
commit
5860408a19
|
@ -66,18 +66,6 @@ typedef struct _WMEvent {
|
||||||
unsigned int mask;
|
unsigned int mask;
|
||||||
} WMEventRec;
|
} 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
|
static int
|
||||||
ProcWindowsWMQueryVersion(ClientPtr client)
|
ProcWindowsWMQueryVersion(ClientPtr client)
|
||||||
{
|
{
|
||||||
|
@ -319,7 +307,6 @@ static int
|
||||||
ProcWindowsWMFrameGetRect(ClientPtr client)
|
ProcWindowsWMFrameGetRect(ClientPtr client)
|
||||||
{
|
{
|
||||||
xWindowsWMFrameGetRectReply rep;
|
xWindowsWMFrameGetRectReply rep;
|
||||||
BoxRec ir;
|
|
||||||
RECT rcNew;
|
RECT rcNew;
|
||||||
|
|
||||||
REQUEST(xWindowsWMFrameGetRectReq);
|
REQUEST(xWindowsWMFrameGetRectReq);
|
||||||
|
@ -334,8 +321,6 @@ ProcWindowsWMFrameGetRect(ClientPtr client)
|
||||||
rep.length = 0;
|
rep.length = 0;
|
||||||
rep.sequenceNumber = client->sequence;
|
rep.sequenceNumber = client->sequence;
|
||||||
|
|
||||||
ir = make_box(stuff->ix, stuff->iy, stuff->iw, stuff->ih);
|
|
||||||
|
|
||||||
if (stuff->frame_rect != 0) {
|
if (stuff->frame_rect != 0) {
|
||||||
ErrorF("ProcWindowsWMFrameGetRect - stuff->frame_rect != 0\n");
|
ErrorF("ProcWindowsWMFrameGetRect - stuff->frame_rect != 0\n");
|
||||||
return BadValue;
|
return BadValue;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user