diff options
author | Florian Müllner <fmuellner@gnome.org> | 2019-01-25 00:47:44 +0100 |
---|---|---|
committer | Florian Müllner <fmuellner@gnome.org> | 2019-01-25 09:43:06 +0100 |
commit | d5a7bbd09462d08f8734b1a07d8f90409012430a (patch) | |
tree | cd354ff8a13c0e42002db0c5b82704940cbe3f96 /src/ui | |
parent | de41f3ea28021d5dbc4d09ee33b8e8acabd37819 (diff) | |
download | mutter-d5a7bbd09462d08f8734b1a07d8f90409012430a.tar.gz |
Fix builds with G_DISABLE_ASSERT
Commit 25f416c13db added additional compilation warnings, including
-Werror=return-type. There are several places where this results
in build failures if `g_assert_not_reached()` is disabled at compile
time and the compiler misses a return value.
https://gitlab.gnome.org/GNOME/mutter/issues/447
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/frames.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ui/frames.c b/src/ui/frames.c index 8743db91e..77f4eb77d 100644 --- a/src/ui/frames.c +++ b/src/ui/frames.c @@ -955,6 +955,7 @@ grab_op_from_resize_control (MetaFrameControl control) return META_GRAB_OP_RESIZING_W; default: g_assert_not_reached (); + return META_GRAB_OP_NONE; } } @@ -1003,6 +1004,7 @@ get_button_number (const ClutterEvent *event) return clutter_event_get_button (event); g_assert_not_reached (); + return -1; } static gboolean @@ -1105,6 +1107,7 @@ meta_frame_left_click_event (MetaUIFrame *frame, return FALSE; default: g_assert_not_reached (); + return FALSE; } } |