ratbagd: fix use of potentially unused variable
Simply abort if the macro value is bad, that's a libratbag bug and should
never happen.
Found in
@@ -305,6 +305,8 @@ static int ratbagd_button_get_macro(sd_bus *bus,
case RATBAG_MACRO_EVENT_WAIT:
value = ratbag_button_macro_get_event_timeout(macro, idx);
break;
+ default:
+ abort();
}
r = sd_bus_message_append(reply, "(uu)", type, value);
