Hi,
I switched -Wall to Werror to catch all warnings (thanks Peter!) and now
I need attached patch to compile wacom driver.

--
regards,
Przemo
>From d7307d114e655d5d34b2c041b8c63208844b7e22 Mon Sep 17 00:00:00 2001
From: Przemo Firszt <[email protected]>
Date: Sun, 13 Dec 2009 17:28:59 +0000
Subject: [PATCH] Quiet gcc warning about not used xf86WcmKbdLedCallback function

xf86WcmKbdLedCallback is used only for ABI < 5, so there is no need to define
it for newer ABI.
Signed-off-by: Przemo Firszt <[email protected]>
---
 src/xf86Wacom.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/xf86Wacom.c b/src/xf86Wacom.c
index e5a7354..95a9c8b 100644
--- a/src/xf86Wacom.c
+++ b/src/xf86Wacom.c
@@ -98,9 +98,11 @@ static void xf86WcmKbdLedCallback(DeviceIntPtr di, LedCtrl * lcp)
 {
 }
 
+#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) < 5
 static void xf86WcmBellCallback(int pct, DeviceIntPtr di, pointer ctrl, int x)
 {
 }
+#endif
 
 static void xf86WcmKbdCtrlCallback(DeviceIntPtr di, KeybdCtrl* ctrl)
 {
-- 
1.6.5.2

------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
_______________________________________________
Linuxwacom-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel

Reply via email to