src/ssd: ensure we crash properly when compiled without asserts

This commit is contained in:
Consolatis 2024-02-10 18:16:10 +01:00
parent d4a74f5ab2
commit 5a9ad76cd4

View file

@ -93,6 +93,8 @@ add_scene_button_corner(struct wl_list *part_list, enum ssd_part_type type,
offset_x = 0; offset_x = 0;
} else { } else {
assert(false && "invalid corner button type"); assert(false && "invalid corner button type");
wlr_log(WLR_ERROR, "invalid corner button type");
abort();
} }
struct ssd_part *button_root = add_scene_part(part_list, corner_type); struct ssd_part *button_root = add_scene_part(part_list, corner_type);