From 5085ac09a50721d87196bd9f2607dc76200ca399 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Wed, 29 Jul 2009 13:45:32 +1000 Subject: input: switch internal event types to enums. Use enum EventType instead of ints. This requires a load of default cases in various switch statements to silence compiler warnings. Reported-by: Aaron Plattner Signed-off-by: Peter Hutterer --- Xi/exevents.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Xi') diff --git a/Xi/exevents.c b/Xi/exevents.c index 5c432664e..4773c4959 100644 --- a/Xi/exevents.c +++ b/Xi/exevents.c @@ -131,6 +131,8 @@ IsPointerEvent(InternalEvent* event) case ET_Motion: /* XXX: enter/leave ?? */ return TRUE; + default: + break; } return FALSE; } @@ -1066,6 +1068,8 @@ ProcessOtherEvent(InternalEvent *ev, DeviceIntPtr device) event->corestate = state; key = event->detail.key; break; + default: + break; } #if 0 @@ -1120,6 +1124,8 @@ ProcessOtherEvent(InternalEvent *ev, DeviceIntPtr device) device->deviceGrab.grab->type == DeviceButtonPress || device->deviceGrab.grab->type == XI_ButtonPress)) deactivateDeviceGrab = TRUE; + default: + break; } -- cgit v1.2.3