summaryrefslogtreecommitdiff
path: root/src/core/display.c
diff options
context:
space:
mode:
authorFlorian Müllner <fmuellner@gnome.org>2019-01-25 00:47:44 +0100
committerFlorian Müllner <fmuellner@gnome.org>2019-01-25 09:43:06 +0100
commitd5a7bbd09462d08f8734b1a07d8f90409012430a (patch)
treecd354ff8a13c0e42002db0c5b82704940cbe3f96 /src/core/display.c
parentde41f3ea28021d5dbc4d09ee33b8e8acabd37819 (diff)
downloadmutter-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/core/display.c')
-rw-r--r--src/core/display.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/display.c b/src/core/display.c
index 02b6f92e0..74e732905 100644
--- a/src/core/display.c
+++ b/src/core/display.c
@@ -1603,6 +1603,7 @@ get_event_route_from_grab_op (MetaGrabOp op)
default:
g_assert_not_reached ();
+ return 0;
}
}
@@ -2622,6 +2623,7 @@ meta_display_supports_extended_barriers (MetaDisplay *display)
}
g_assert_not_reached ();
+ return FALSE;
}
/**