mirror of
https://github.com/brl/mutter.git
synced 2025-07-23 18:11:23 +00:00
Fix builds with G_DISABLE_ASSERT
Commit 25f416c13d
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
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user