diff options
author | Yaakov Selkowitz <yselkowitz@users.sourceforge.net> | 2010-08-06 00:26:46 -0500 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2010-08-09 08:30:31 +1000 |
commit | 0ac4f20a863d69b99193da26d468397827c672a1 (patch) | |
tree | b6ff194e341c24f6961ee18d3e2c3cac7f8a3298 | |
parent | c963b0cb393630962e9094e849b291c539b655ca (diff) |
Remove unused variable warning with !XF86MISC
xset.c: In function 'query':
xset.c:1317: warning: unused variable 'dummy'
Signed-off-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r-- | xset.c | 13 |
1 files changed, 8 insertions, 5 deletions
@@ -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++) { |