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

@ -17,6 +17,9 @@
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*
*/
/* Till https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/3915 is fixed */
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wshadow"
#include "config.h"
@ -1826,3 +1829,5 @@ meta_screen_cast_stream_src_get_preferred_format (MetaScreenCastStreamSrc *src)
return klass->get_preferred_format (src);
}
#pragma GCC diagnostic pop