]> git.mdlowis.com Git - proto/labwc.git/commitdiff
src/ssd: ensure we crash properly when compiled without asserts
authorConsolatis <35009135+Consolatis@users.noreply.github.com>
Sat, 10 Feb 2024 17:16:10 +0000 (18:16 +0100)
committerConsolatis <35009135+Consolatis@users.noreply.github.com>
Sat, 10 Feb 2024 18:22:12 +0000 (19:22 +0100)
src/ssd/ssd_part.c

index 20a9ad3aa8682d69fff6dcd9641094ada3702ffc..f8a693f03f41f383fa0c8fb02436e9036f6f3a53 100644 (file)
@@ -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);