mirror of
https://github.com/labwc/labwc.git
synced 2025-10-29 05:40:24 -04:00
src/ssd: ensure we crash properly when compiled without asserts
This commit is contained in:
parent
a5c6b2f83d
commit
7500120670
1 changed files with 2 additions and 0 deletions
|
|
@ -93,6 +93,8 @@ add_scene_button_corner(struct wl_list *part_list, enum ssd_part_type type,
|
|||
offset_x = 0;
|
||||
} else {
|
||||
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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue