GCC 11 errors: -Werror=incompatible-pointer-types
Building the package (release 4.8.1) I see the following compilation errors:
[ 21s] cc -Igtksourceview/libgtksourceview-4core.a.p -Igtksourceview -I../gtksourceview -I. -I.. -I/usr/include/fribidi -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/uuid -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/gio-unix-2.0 -I/usr/include/wayland -I/usr/include/libxkbcommon -I/usr/include/atk-1.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/at-spi-2.0 -I/usr/include/libxml2 -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu99 -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGDK_VERSION_MIN_REQUIRED=GDK_VERSION_3_24 -DGDK_VERSION_MAX_ALLOWED=GDK_VERSION_3_24 -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_48 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_48 -Wcast-align -Wdeclaration-after-statement -Werror=address -Werror=array-bounds -Werror=empty-body -Werror=implicit -Werror=implicit-function-declaration -Werror=incompatible-pointer-types -Werror=init-self -Werror=int-conversion -Werror=int-to-pointer-cast -Werror=main -Werror=misleading-indentation -Werror=missing-braces -Werror=missing-include-dirs -Werror=nonnull -Werror=overflow -Werror=pointer-arith -Werror=pointer-to-int-cast -Werror=return-type -Werror=sequence-point -Werror=shadow -Werror=strict-prototypes -Werror=trigraphs -Werror=undef -Werror=write-strings -Wformat-nonliteral -Werror=format-security -Werror=format=2 -Wignored-qualifiers -Wimplicit-function-declaration -Wlogical-op -Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-noreturn -Wnested-externs -Wno-cast-function-type -Wno-missing-field-initializers -Wno-sign-compare -Wno-unused-parameter -Wold-style-definition -Wpointer-arith -Wstrict-prototypes -Wswitch-default -Wswitch-enum -Wundef -Wuninitialized -Wunused -fno-strict-aliasing -Wmissing-declarations -DG_DISABLE_ASSERT -DG_DISABLE_CAST_CHECKS -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -flto=auto -ffat-lto-objects -g -fPIC -pthread -DHAVE_CONFIG_H -DGTK_SOURCE_COMPILATION '-DG_LOG_DOMAIN="GtkSourceView"' -MD -MQ gtksourceview/libgtksourceview-4core.a.p/meson-generated_.._gtksource-enumtypes.c.o -MF gtksourceview/libgtksourceview-4core.a.p/meson-generated_.._gtksource-enumtypes.c.o.d -o gtksourceview/libgtksourceview-4core.a.p/meson-generated_.._gtksource-enumtypes.c.o -c gtksourceview/gtksource-enumtypes.c
[ 21s] In file included from /usr/include/glib-2.0/glib/gthread.h:32,
[ 21s] from /usr/include/glib-2.0/glib/gasyncqueue.h:32,
[ 21s] from /usr/include/glib-2.0/glib.h:32,
[ 21s] from /usr/include/glib-2.0/gobject/gbinding.h:28,
[ 21s] from /usr/include/glib-2.0/glib-object.h:22,
[ 21s] from gtksourceview/gtksource-enumtypes.h:6,
[ 21s] from gtksourceview/gtksource-enumtypes.c:4:
[ 21s] gtksourceview/gtksource-enumtypes.c: In function ‘gtk_source_bracket_match_type_get_type’:
[ 21s] /usr/include/glib-2.0/glib/gatomic.h:117:5: error: argument 2 of ‘__atomic_load’ discards ‘volatile’ qualifier [-Werror=incompatible-pointer-types]
[ 21s] 117 | __atomic_load (gapg_temp_atomic, &gapg_temp_newval, __ATOMIC_SEQ_CST); \
[ 21s] | ^~~~~~~~~~~~~
[ 21s] /usr/include/glib-2.0/glib/gthread.h:260:7: note: in expansion of macro ‘g_atomic_pointer_get’
[ 21s] 260 | (!g_atomic_pointer_get (location) && \
[ 21s] | ^~~~~~~~~~~~~~~~~~~~
[ 21s] gtksourceview/gtksource-enumtypes.c:61:7: note: in expansion of macro ‘g_once_init_enter’
[ 21s] 61 | if (g_once_init_enter (>ype_id)) {
[ 21s] | ^~~~~~~~~~~~~~~~~
...