From 3607d03ff812b66872c17ca81b1c0a9b3cf0ca7f Mon Sep 17 00:00:00 2001 From: twinaphex Date: Tue, 9 Feb 2021 16:20:40 +0100 Subject: [PATCH] Get rid of warning on older OSX SDK versions --- input/drivers_hid/iohidmanager_hid.c | 23 ++++++----------------- 1 file changed, 6 insertions(+), 17 deletions(-) diff --git a/input/drivers_hid/iohidmanager_hid.c b/input/drivers_hid/iohidmanager_hid.c index 325a92300c..151b4dbedd 100644 --- a/input/drivers_hid/iohidmanager_hid.c +++ b/input/drivers_hid/iohidmanager_hid.c @@ -725,15 +725,6 @@ static void iohidmanager_hid_device_add_device( case kHIDPage_GenericDesktop: switch (type) { - case kIOHIDElementTypeCollection: - case kIOHIDElementTypeInput_ScanCodes: - case kIOHIDElementTypeFeature: - case kIOHIDElementTypeInput_Button: - case kIOHIDElementTypeOutput: - case kIOHIDElementTypeInput_Axis: - case 5: /* kIOHIDElementTypeInput_NULL */ - /* TODO/FIXME */ - break; case kIOHIDElementTypeInput_Misc: switch (use) { @@ -785,24 +776,22 @@ static void iohidmanager_hid_device_add_device( break; } break; + default: + /* TODO/FIXME */ + break; } break; case kHIDPage_Consumer: case kHIDPage_Button: switch (type) { - case kIOHIDElementTypeCollection: - case kIOHIDElementTypeFeature: - case kIOHIDElementTypeInput_ScanCodes: - case kIOHIDElementTypeInput_Axis: - case kIOHIDElementTypeOutput: - case 5: /* kIOHIDElementTypeInput_NULL */ - /* TODO/FIXME */ - break; case kIOHIDElementTypeInput_Misc: case kIOHIDElementTypeInput_Button: detected_button = 1; break; + default: + /* TODO/FIXME */ + break; } break;