[PATCH xset 1/3] Remove unused variable warning with !XF86MISC
Yaakov (Cygwin/X)
yselkowitz at users.sourceforge.net
Thu Aug 5 22:26:46 PDT 2010
From: Yaakov Selkowitz <yselkowitz at users.sourceforge.net>
xset.c: In function 'query':
xset.c:1317: warning: unused variable 'dummy'
Signed-off-by: Yaakov Selkowitz <yselkowitz at users.sourceforge.net>
---
xset.c | 13 ++++++++-----
1 files changed, 8 insertions(+), 5 deletions(-)
diff --git a/xset.c b/xset.c
index 7fbb162..d2ec956 100644
--- a/xset.c
+++ b/xset.c
@@ -1314,7 +1314,6 @@ query(Display *dpy)
XKeyboardState values;
int acc_num, acc_denom, threshold;
int timeout, interval, prefer_blank, allow_exp;
- int dummy;
#ifdef XF86MISC
XF86MiscKbdSettings kbdinfo;
@@ -1425,10 +1424,14 @@ query(Display *dpy)
#endif
#endif
#ifdef XF86MISC
- if (XF86MiscQueryExtension(dpy, &dummy, &dummy) &&
- XF86MiscGetKbdSettings(dpy, &kbdinfo))
- printf(" auto repeat delay: %d repeat rate: %d\n",
- kbdinfo.delay, kbdinfo.rate);
+ {
+ int dummy;
+
+ if (XF86MiscQueryExtension(dpy, &dummy, &dummy) &&
+ XF86MiscGetKbdSettings(dpy, &kbdinfo))
+ printf(" auto repeat delay: %d repeat rate: %d\n",
+ kbdinfo.delay, kbdinfo.rate);
+ }
#endif
printf(" auto repeating keys: ");
for (i = 0; i < 4; i++) {
--
1.7.1
More information about the xorg-devel
mailing list