GCC 11 errors: argument 2 of '__atomic_load' discards 'volatile' qualifier [-Werror=incompatible-pointer-types]
Building the project with GCC 11 I see:
[ 45s] libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I.. -I/usr/include/gstreamer-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -Wall -Wdeclaration-after-statement -Wvla -Wpointer-arith -Werror -g -Wno-error=deprecated-declarations -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/gstreamer-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/gstreamer-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/gstreamer-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -g -c fs-enumtypes.c -fPIC -DPIC -o .libs/libfarstream_0.2_la-fs-enumtypes.o
[ 45s] In file included from /usr/include/glib-2.0/glib/gthread.h:32,
[ 45s] from /usr/include/glib-2.0/glib/gasyncqueue.h:32,
[ 45s] from /usr/include/glib-2.0/glib.h:32,
[ 45s] from /usr/include/glib-2.0/gobject/gbinding.h:28,
[ 45s] from /usr/include/glib-2.0/glib-object.h:22,
[ 45s] from fs-enumtypes.h:7,
[ 45s] from fs-enumtypes.c:8:
[ 45s] fs-enumtypes.c: In function 'fs_candidate_type_get_type':
[ 45s] /usr/include/glib-2.0/glib/gatomic.h:117:5: error: argument 2 of '__atomic_load' discards 'volatile' qualifier [-Werror=incompatible-pointer-types]
[ 45s] 117 | __atomic_load (gapg_temp_atomic, &gapg_temp_newval, __ATOMIC_SEQ_CST); \
[ 45s] | ^~~~~~~~~~~~~
[ 45s] /usr/include/glib-2.0/glib/gthread.h:260:7: note: in expansion of macro 'g_atomic_pointer_get'
[ 45s] 260 | (!g_atomic_pointer_get (location) && \
[ 45s] | ^~~~~~~~~~~~~~~~~~~~
[ 45s] fs-enumtypes.c:23:7: note: in expansion of macro 'g_once_init_enter'
[ 45s] 23 | if (g_once_init_enter (&g_define_type_id__volatile)) {
[ 45s] | ^~~~~~~~~~~~~~~~~
[ 45s] fs-enumtypes.c: In function 'fs_network_protocol_get_type':
[ 45s] /usr/include/glib-2.0/glib/gatomic.h:117:5: error: argument 2 of '__atomic_load' discards 'volatile' qualifier [-Werror=incompatible-pointer-types]
[ 45s] 117 | __atomic_load (gapg_temp_atomic, &gapg_temp_newval, __ATOMIC_SEQ_CST); \
[ 45s] | ^~~~~~~~~~~~~
[ 45s] /usr/include/glib-2.0/glib/gthread.h:260:7: note: in expansion of macro 'g_atomic_pointer_get'
[ 45s] 260 | (!g_atomic_pointer_get (location) && \
[ 45s] | ^~~~~~~~~~~~~~~~~~~~
[ 45s] fs-enumtypes.c:41:7: note: in expansion of macro 'g_once_init_enter'
[ 45s] 41 | if (g_once_init_enter (&g_define_type_id__volatile)) {
[ 45s] | ^~~~~~~~~~~~~~~~~
[ 45s] fs-enumtypes.c: In function 'fs_component_type_get_type':
[ 45s] /usr/include/glib-2.0/glib/gatomic.h:117:5: error: argument 2 of '__atomic_load' discards 'volatile' qualifier [-Werror=incompatible-pointer-types]
[ 45s] 117 | __atomic_load (gapg_temp_atomic, &gapg_temp_newval, __ATOMIC_SEQ_CST); \
[ 45s] | ^~~~~~~~~~~~~
[ 45s] /usr/include/glib-2.0/glib/gthread.h:260:7: note: in expansion of macro 'g_atomic_pointer_get'
[ 45s] 260 | (!g_atomic_pointer_get (location) && \
[ 45s] | ^~~~~~~~~~~~~~~~~~~~
[ 45s] fs-enumtypes.c:59:7: note: in expansion of macro 'g_once_init_enter'
[ 45s] 59 | if (g_once_init_enter (&g_define_type_id__volatile)) {
[ 45s] | ^~~~~~~~~~~~~~~~~
[ 45s] fs-enumtypes.c: In function 'fs_media_type_get_type':
[ 45s] /usr/include/glib-2.0/glib/gatomic.h:117:5: error: argument 2 of '__atomic_load' discards 'volatile' qualifier [-Werror=incompatible-pointer-types]
[ 45s] 117 | __atomic_load (gapg_temp_atomic, &gapg_temp_newval, __ATOMIC_SEQ_CST); \
[ 45s] | ^~~~~~~~~~~~~
[ 45s] /usr/include/glib-2.0/glib/gthread.h:260:7: note: in expansion of macro 'g_atomic_pointer_get'
[ 45s] 260 | (!g_atomic_pointer_get (location) && \
[ 45s] | ^~~~~~~~~~~~~~~~~~~~
[ 45s] fs-enumtypes.c:77:7: note: in expansion of macro 'g_once_init_enter'
[ 45s] 77 | if (g_once_init_enter (&g_define_type_id__volatile)) {
[ 45s] | ^~~~~~~~~~~~~~~~~