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:
Simon Ser 2020-05-19 12:23:23 +02:00 committed by Drew DeVault
parent 666498db01
commit 781ed1ff02
4 changed files with 4 additions and 9 deletions

View file

@ -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(