summaryrefslogtreecommitdiff
path: root/console-client
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2013-09-21 14:10:19 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2013-09-21 14:10:19 +0200
commit036e37ea05c59013bef4e40e6f3485b2674fd939 (patch)
treec35c07a1d10374f778ad881155b512b3dc828e94 /console-client
parentac5d97ead2173f6ec6a8fc3f57b994c86c0afe27 (diff)
Fix gcc warning
* console-client/pc-kbd.c (gnumach_v1_input_next) [XKB_SUPPORT]: Do not define `up` and `sc` variables.
Diffstat (limited to 'console-client')
-rw-r--r--console-client/pc-kbd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/console-client/pc-kbd.c b/console-client/pc-kbd.c
index c6eda86f..21c09876 100644
--- a/console-client/pc-kbd.c
+++ b/console-client/pc-kbd.c
@@ -591,8 +591,10 @@ static enum scancode
gnumach_v1_input_next ()
{
kd_event data_buf;
+#ifndef XKB_SUPPORT
int up;
enum scancode sc;
+#endif /* not XKB_SUPPORT */
do
{