eventconvert.c:287:9: warning: enumeration value 'ET_Enter' not handled in 
switch
eventconvert.c:287:9: warning: enumeration value 'ET_Leave' not handled in 
switch
eventconvert.c:287:9: warning: enumeration value 'ET_FocusIn' not handled in 
switch
eventconvert.c:287:9: warning: enumeration value 'ET_FocusOut' not handled in 
switch
eventconvert.c:287:9: warning: enumeration value 'ET_DeviceChanged' not handled 
in switch
eventconvert.c:287:9: warning: enumeration value 'ET_Hierarchy' not handled in 
switch
eventconvert.c:287:9: warning: enumeration value 'ET_DGAEvent' not handled in 
switch
eventconvert.c:287:9: warning: enumeration value 'ET_RawKeyPress' not handled 
in switch
eventconvert.c:287:9: warning: enumeration value 'ET_RawKeyRelease' not handled 
in switch
eventconvert.c:287:9: warning: enumeration value 'ET_RawButtonPress' not 
handled in switch
eventconvert.c:287:9: warning: enumeration value 'ET_RawButtonRelease' not 
handled in switch
eventconvert.c:287:9: warning: enumeration value 'ET_RawMotion' not handled in 
switch
eventconvert.c:287:9: warning: enumeration value 'ET_XQuartz' not handled in 
switch
eventconvert.c:287:9: warning: enumeration value 'ET_Internal' not handled in 
switch

>From the code it appears these are can't happens, so if they ever do,
BadImplementation seems entirely appropriate.

Signed-off-by: Adam Jackson <a...@redhat.com>
---
 dix/eventconvert.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/dix/eventconvert.c b/dix/eventconvert.c
index 760729b..c9d1994 100644
--- a/dix/eventconvert.c
+++ b/dix/eventconvert.c
@@ -297,6 +297,9 @@ eventToKeyButtonPointer(DeviceEvent *ev, xEvent **xi, int 
*count)
             case ET_ProximityOut:
                 *count = 0;
                 return BadMatch;
+           default:
+               *count = 0;
+               return BadImplementation;
         }
     }
 
-- 
1.7.3.5

_______________________________________________
xorg-devel@lists.x.org: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to