summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharlie <root@netbsd.(none)>2009-07-09 08:09:54 +0200
committerCharlie <root@netbsd.(none)>2009-07-09 10:04:08 +0200
commit66bdf8d3f289a3ada44c37f3ceb00fc728975cac (patch)
tree86878bcc568f7f737d460dafe9b828a0cbd99ac2
parent2ddc4e9b2882914a56508613fe069c7335c64cc7 (diff)
Conditionally declare some variables that are only used conditionally.
Reviewed-by: Matthieu Herrn <matthieu@openbsd.org> Acked-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r--src/mouse.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mouse.c b/src/mouse.c
index fefdc1f..dd3eb2e 100644
--- a/src/mouse.c
+++ b/src/mouse.c
@@ -1593,8 +1593,10 @@ MouseProc(DeviceIntPtr device, int what)
mousePrivPtr mPriv;
unsigned char map[MSE_MAXBUTTONS + 1];
int i;
+#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 7
Atom btn_labels[MSE_MAXBUTTONS] = {0};
Atom axes_labels[2] = { 0, 0 };
+#endif
pInfo = device->public.devicePrivate;
pMse = pInfo->private;