dix: fix compiler warnings about unused variables.

This commit is contained in:
Peter Hutterer 2007-09-13 23:22:27 +09:30
parent 68e0c4988e
commit 1c25c46f3d

View File

@ -777,8 +777,9 @@ ConfineToShape(DeviceIntPtr pDev, RegionPtr shape, int *px, int *py)
BoxRec box;
int x = *px, y = *py;
int incx = 1, incy = 1;
SpritePtr pSprite = pDev->spriteInfo->sprite;
SpritePtr pSprite;
pSprite = pDev->spriteInfo->sprite;
if (POINT_IN_REGION(pSprite->hot.pScreen, shape, x, y, &box))
return;
box = *REGION_EXTENTS(pSprite->hot.pScreen, shape);
@ -3489,9 +3490,7 @@ ProcessKeyboardEvent (xEvent *xE, DeviceIntPtr keybd, int count)
{
int key, bit;
BYTE *kptr;
int i;
CARD8 modifiers;
CARD16 mask;
GrabPtr grab;
GrabInfoPtr grabinfo;
Bool deactivateGrab = FALSE;