From e2f1953fa72d86a80e4233aa1e0f3641f930d2e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 12 Oct 2021 19:56:31 +0300 Subject: [PATCH] Fix compilation with gcc 11 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ../gstajacommon.cpp: In function ‘GType gst_aja_audio_meta_api_get_type()’: /usr/include/glib-2.0/glib/gatomic.h:113:19: error: argument 2 of ‘__atomic_load’ must not be a pointer to a ‘volatile’ type 113 | __atomic_load (gapg_temp_atomic, &gapg_temp_newval, __ATOMIC_SEQ_CST); \ | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/glib-2.0/glib/gthread.h:260:7: note: in expansion of macro ‘g_atomic_pointer_get’ 260 | (!g_atomic_pointer_get (location) && \ | ^~~~~~~~~~~~~~~~~~~~ ../gstajacommon.cpp:398:7: note: in expansion of macro ‘g_once_init_enter’ 398 | if (g_once_init_enter(&type)) { | ^~~~~~~~~~~~~~~~~ --- gstajacommon.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gstajacommon.cpp b/gstajacommon.cpp index 004981a5e9..dbb7da8c8d 100644 --- a/gstajacommon.cpp +++ b/gstajacommon.cpp @@ -393,7 +393,7 @@ bool gst_ntv2_video_format_is_quad(NTV2VideoFormat format) { } GType gst_aja_audio_meta_api_get_type(void) { - static volatile GType type; + static GType type; if (g_once_init_enter(&type)) { static const gchar *tags[] = {NULL};