[PATCH:xset] Remove two unused variables.

Jeremy Huddleston jeremyhu at freedesktop.org
Sun Dec 20 16:12:47 PST 2009


Reviewed-By: Jeremy Huddleston <jeremyhu at apple.com>

On Dec 20, 2009, at 14:36, Peter Hutterer wrote:

> xset.c: In function ‘query’:
> xset.c:1388: warning: unused variable ‘ind’
> xset.c:1387: warning: unused variable ‘state’
> 
> Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
> ---
> xset.c |    3 ---
> 1 files changed, 0 insertions(+), 3 deletions(-)
> 
> diff --git a/xset.c b/xset.c
> index 5283b09..7458ee9 100644
> --- a/xset.c
> +++ b/xset.c
> @@ -1384,9 +1384,6 @@ query(Display *dpy)
> 
> 	    if (XGetAtomNames(dpy, iatoms, j, iatomnames)) {
> 		for (i = 0; i < j; i++) {
> -		    Bool state;
> -		    int ind;
> -
> 		    if (XkbGetNamedIndicator(dpy, iatoms[i], &inds[i],
> 					     &istates[i], NULL, NULL)) {
> 			int namelen = strlen(iatomnames[i]);
> -- 
> 1.6.5.2
> _______________________________________________
> xorg-devel mailing list
> xorg-devel at lists.x.org
> http://lists.x.org/mailman/listinfo/xorg-devel

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5820 bytes
Desc: not available
Url : http://lists.x.org/archives/xorg-devel/attachments/20091220/7bfbc942/attachment.bin 


More information about the xorg-devel mailing list