build: Enable -Werror=shadow and fix related issues

Mostly renames or removing already defined types

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3378>
This commit is contained in:
Bilal Elmoussaoui
2023-11-09 15:29:38 +01:00
committed by Bilal Elmoussaoui
parent e509fc7f00
commit fc623c1ed1
49 changed files with 157 additions and 183 deletions

View File

@ -95,10 +95,6 @@ cursor_sprite_prepare_at (MetaCursorSprite *cursor_sprite,
if (!meta_wayland_surface_is_xwayland (surface))
{
MetaWaylandSurfaceRole *surface_role =
META_WAYLAND_SURFACE_ROLE (cursor_surface);
MetaWaylandSurface *surface =
meta_wayland_surface_role_get_surface (surface_role);
MetaContext *context =
meta_wayland_compositor_get_context (surface->compositor);
MetaBackend *backend = meta_context_get_backend (context);