mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04:00
Fix -Wreturn-type warnings
When calling assert(0) instead of returning a value, -Wreturn-type warnings are triggered because assertions can be disabled. Replace these assertions with abort().
This commit is contained in:
parent
666498db01
commit
781ed1ff02
4 changed files with 4 additions and 9 deletions
|
|
@ -118,8 +118,7 @@ static enum wlr_tablet_tool_type wlr_type_from_libinput_type(
|
|||
return WLR_TABLET_TOOL_TYPE_TOTEM;
|
||||
#endif
|
||||
}
|
||||
|
||||
assert(false && "UNREACHABLE");
|
||||
abort(); // unreachable
|
||||
}
|
||||
|
||||
static struct wlr_libinput_tablet_tool *get_wlr_tablet_tool(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue