[PATCH xserver 2/2] kdrive: Squash a new unused variable warning

Adam Jackson ajax at redhat.com
Fri Apr 8 15:48:39 UTC 2016


keyboard.c:46:21: warning: ‘linux_to_x’ defined but not used

Signed-off-by: Adam Jackson <ajax at redhat.com>
---
 hw/kdrive/linux/keyboard.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/kdrive/linux/keyboard.c b/hw/kdrive/linux/keyboard.c
index 9a6ee2d..1387077 100644
--- a/hw/kdrive/linux/keyboard.c
+++ b/hw/kdrive/linux/keyboard.c
@@ -43,6 +43,7 @@
 
 extern int LinuxConsoleFd;
 
+#if 0
 static const KeySym linux_to_x[256] = {
     NoSymbol, NoSymbol, NoSymbol, NoSymbol,
     NoSymbol, NoSymbol, NoSymbol, NoSymbol,
@@ -134,7 +135,6 @@ static const KeySym linux_to_x[256] = {
    for the core X keyboard protocol has to be AT-scancode based so that it
    corresponds to the Xkb keymap.
 */
-#if 0
 static unsigned char at2lnx[] = {
     0x0,                        /* no valid scancode */
     0x01, /* KEY_Escape */ 0x02,        /* KEY_1 */
-- 
2.7.3



More information about the xorg-devel mailing list