output: Abort on invalid power state

pull/199/head
Andri Yngvason 2022-12-01 21:27:55 +00:00
parent 5bb8cbfa92
commit 03d7f1dc6d
1 changed files with 2 additions and 0 deletions

View File

@ -270,6 +270,8 @@ const char* output_power_state_name(enum output_power_state state)
case OUTPUT_POWER_UNKNOWN: case OUTPUT_POWER_UNKNOWN:
return "??"; return "??";
} }
abort();
return NULL;
} }
static void output_power_mode(void *data, static void output_power_mode(void *data,