mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-15 00:13:28 +00:00
dix: fix compiler warnings ("foo" set but not used)
devices.c: In function 'AttachDevice': devices.c:2409:18: warning: variable 'oldmaster' set but not used [-Wunused-but-set-variable] events.c: In function 'ConfineToShape': events.c:683:15: warning: variable 'pSprite' set but not used [-Wunused-but-set-variable] events.c: In function 'ProcGrabPointer': events.c:4759:15: warning: variable 'time' set but not used [-Wunused-but-set-variable] getevents.c: In function 'GetMotionHistory': getevents.c:425:9: warning: variable 'dflt' set but not used [-Wunused-but-set-variable] Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Daniel Stone <daniel@fooishbar.org>
This commit is contained in:
parent
6fd2adc179
commit
4b376ddeb4
3 changed files with 0 additions and 14 deletions
|
|
@ -680,9 +680,7 @@ ConfineToShape(DeviceIntPtr pDev, RegionPtr shape, int *px, int *py)
|
|||
BoxRec box;
|
||||
int x = *px, y = *py;
|
||||
int incx = 1, incy = 1;
|
||||
SpritePtr pSprite;
|
||||
|
||||
pSprite = pDev->spriteInfo->sprite;
|
||||
if (RegionContainsPoint(shape, x, y, &box))
|
||||
return;
|
||||
box = *RegionExtents(shape);
|
||||
|
|
@ -4765,7 +4763,6 @@ ProcGrabPointer(ClientPtr client)
|
|||
WindowPtr confineTo;
|
||||
CursorPtr oldCursor;
|
||||
REQUEST(xGrabPointerReq);
|
||||
TimeStamp time;
|
||||
int rc;
|
||||
|
||||
REQUEST_SIZE_MATCH(xGrabPointerReq);
|
||||
|
|
@ -4811,7 +4808,6 @@ ProcGrabPointer(ClientPtr client)
|
|||
if (oldCursor && rep.status == GrabSuccess)
|
||||
FreeCursor (oldCursor, (Cursor)0);
|
||||
|
||||
time = ClientTimeToServerTime(stuff->time);
|
||||
rep.type = X_Reply;
|
||||
rep.sequenceNumber = client->sequence;
|
||||
rep.length = 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue