From d5a7bbd09462d08f8734b1a07d8f90409012430a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Fri, 25 Jan 2019 00:47:44 +0100 Subject: 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 --- src/backends/x11/meta-monitor-manager-xrandr.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/backends/x11/meta-monitor-manager-xrandr.c') diff --git a/src/backends/x11/meta-monitor-manager-xrandr.c b/src/backends/x11/meta-monitor-manager-xrandr.c index 246e60334..c3a33e5d3 100644 --- a/src/backends/x11/meta-monitor-manager-xrandr.c +++ b/src/backends/x11/meta-monitor-manager-xrandr.c @@ -173,6 +173,7 @@ meta_monitor_transform_to_xrandr (MetaMonitorTransform transform) } g_assert_not_reached (); + return 0; } static gboolean -- cgit v1.2.1