From 036e37ea05c59013bef4e40e6f3485b2674fd939 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sat, 21 Sep 2013 14:10:19 +0200 Subject: Fix gcc warning * console-client/pc-kbd.c (gnumach_v1_input_next) [XKB_SUPPORT]: Do not define `up` and `sc` variables. --- console-client/pc-kbd.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'console-client') 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 { -- cgit v1.2.3