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

@ -672,7 +672,7 @@ process_plane_assignment (MetaKmsImplDevice *impl_device,
struct {
MetaKmsPlaneProp prop;
uint64_t value;
} props[] = {
} cursor_props[] = {
{
.prop = META_KMS_PLANE_PROP_HOTSPOT_X,
.value = plane_assignment->cursor_hotspot.is_valid ?
@ -687,12 +687,12 @@ process_plane_assignment (MetaKmsImplDevice *impl_device,
},
};
for (i = 0; i < G_N_ELEMENTS (props); i++)
for (i = 0; i < G_N_ELEMENTS (cursor_props); i++)
{
if (!add_plane_property (impl_device,
plane, req,
props[i].prop,
props[i].value,
cursor_props[i].prop,
cursor_props[i].value,
error))
return FALSE;
}