../src/wcmUSB.c: In function 'usbInitToolType':
../src/wcmUSB.c:1378:30: warning: cast discards '__attribute__((const))' 
qualifier from pointer target type [-Wcast-qual]

Signed-off-by: Jason Gerecke <killert...@gmail.com>
---
 src/wcmUSB.c |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/wcmUSB.c b/src/wcmUSB.c
index 76cc85d..4ec91b7 100644
--- a/src/wcmUSB.c
+++ b/src/wcmUSB.c
@@ -1375,11 +1375,10 @@ static int usbParseBTNEvent(WacomCommonPtr common,
 static int usbInitToolType(const struct input_event *event_ptr, int nevents, 
int last_device_type)
 {
        int i, device_type = 0;
-       struct input_event* event = (struct input_event *)event_ptr;
 
        for (i = 0; (i < nevents) && !device_type; ++i)
        {
-               switch (event->code)
+               switch (event_ptr->code)
                {
                        case BTN_TOOL_PEN:
                        case BTN_TOOL_PENCIL:
@@ -1399,7 +1398,7 @@ static int usbInitToolType(const struct input_event 
*event_ptr, int nevents, int
                                break;
                }
 
-               event++;
+               event_ptr++;
        }
 
        if (!device_type)
-- 
1.7.10.2


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Linuxwacom-devel mailing list
Linuxwacom-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel

Reply via email to