From 8a3f6f75218080b3e7657cb104c6f8e025f358ef Mon Sep 17 00:00:00 2001 From: Charlie Date: Thu, 9 Jul 2009 08:09:54 +0200 Subject: Conditionally declare some variables that are only used conditionally. --- src/mouse.c | 2 ++ 1 file changed, 2 insertions(+) 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; -- cgit v1.2.3