diff options
author | Simon Ser <contact@emersion.fr> | 2020-05-19 12:23:23 +0200 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2020-05-19 14:54:02 +0200 |
commit | 781ed1ff02e38dffdfebca0fa80baa1791849c3b (patch) | |
tree | 92216d727e9e2e0d20392c072cc26328e1a8a6e5 /backend/libinput | |
parent | 666498db015ad1439a8916bce609baf8fa042b5d (diff) |
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().
Diffstat (limited to 'backend/libinput')
-rw-r--r-- | backend/libinput/tablet_tool.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/backend/libinput/tablet_tool.c b/backend/libinput/tablet_tool.c index 9c0ef0cf..845ef220 100644 --- a/backend/libinput/tablet_tool.c +++ b/backend/libinput/tablet_tool.c @@ -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( |