[PATCH] Fix "warning: unused variable XXX"

Ian Romanick idr at freedesktop.org
Wed Feb 4 13:56:08 PST 2009


On Tue, Feb 03, 2009 at 11:54:53PM +0100, Tomas Carnecky wrote:

> diff --git a/dix/events.c b/dix/events.c
> index 0c8d198..2a35aa3 100644
> --- a/dix/events.c
> +++ b/dix/events.c
> @@ -4611,7 +4611,6 @@ ProcQueryPointer(ClientPtr client)
>      xQueryPointerReply rep;
>      WindowPtr pWin, t;
>      DeviceIntPtr mouse = PickPointer(client);
> -    DeviceIntPtr kbd = PickKeyboard(client);

Are you sure that PickKeyboard doesn't have any side-effect?  It seems
unlikely, but it's better to check and be sure.

>      SpritePtr pSprite;
>      int rc;
>      REQUEST(xResourceReq);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg/attachments/20090204/e7e54292/attachment.pgp>


More information about the xorg mailing list