From b53b5bd710c4805b59295360dfe64b10ed75ea31 Mon Sep 17 00:00:00 2001 From: Nick Briggs Date: Sat, 14 Jan 2023 11:53:42 -0800 Subject: [PATCH] Resolve unused-variable warning for DOSLispKeyMap_101 DOSLispKeyMap_101 will not be referenced unless compiling with -DDOS so wrap the declaration in an #ifdef DOS. --- src/initkbd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/initkbd.c b/src/initkbd.c index e7d1dd8..d8af8b1 100644 --- a/src/initkbd.c +++ b/src/initkbd.c @@ -194,6 +194,7 @@ u_char DOSLispKeyMap_101[0x80] = { /* 7*/ 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff}; #endif /* NEVER */ +#ifdef DOS /* For the IBM-101 kbd FF marks exceptions */ static u_char DOSLispKeyMap_101[0x80] = { /* 0 1 2 3 4 5 6 7 8 9 a b c d e f */ @@ -206,6 +207,7 @@ static u_char DOSLispKeyMap_101[0x80] = { /* 5*/ 131, 91, 89, 46, 0xff, 0xff, 0xff, 107, 108, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, /* 6*/ 89, 62, 63, 46, 90, 91, 130, 129, 131, 132, 92, 61, 0xff, 0xff, 0xff, 0xff, /* 7*/ 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff}; +#endif void init_keyboard(int flg) /* if 0 init else re-init */ {