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:

committed by
Bilal Elmoussaoui

parent
e509fc7f00
commit
fc623c1ed1
@ -475,15 +475,15 @@ update_filter_cb (MetaKmsImpl *impl,
|
||||
for (i = 0; i < crtc_states->len; i++)
|
||||
{
|
||||
CrtcStateImpl *crtc_state_impl = g_ptr_array_index (crtc_states, i);
|
||||
MetaKmsCrtc *crtc = crtc_state_impl->crtc;
|
||||
MetaKmsCrtc *state_crtc = crtc_state_impl->crtc;
|
||||
MetaDrmBuffer *old_buffer = NULL;
|
||||
|
||||
if (meta_kms_crtc_get_device (crtc) !=
|
||||
if (meta_kms_crtc_get_device (state_crtc) !=
|
||||
meta_kms_update_get_device (update))
|
||||
continue;
|
||||
|
||||
update = maybe_update_cursor_plane (cursor_manager_impl,
|
||||
crtc, update, &old_buffer);
|
||||
state_crtc, update, &old_buffer);
|
||||
if (old_buffer)
|
||||
old_buffers = g_list_prepend (old_buffers, old_buffer);
|
||||
}
|
||||
|
Reference in New Issue
Block a user