From 270f2f83a1fd320f3a436a78a30a53dacf09e0b6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim-Philipp=20M=C3=BCller?= Date: Fri, 1 May 2020 14:43:55 +0100 Subject: [PATCH] autoconvert: fix compiler warnings with g_atomic on recent GLib versions MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The volatile is not needed here and causes compiler warnings with newer GLib versions. gstautoconvert.c: In function ‘gst_auto_convert_dispose’ (and elsewhere): glib/gatomic.h:108:3: warning: initialization discards ‘volatile’ qualifier from pointer target type [-Wdiscarded-qualifiers] gstautoconvert.c:224:24: note: in expansion of macro ‘g_atomic_pointer_get’ 224 | GList *factories = g_atomic_pointer_get (&autoconvert->factories); Part-of: --- gst/autoconvert/gstautoconvert.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/autoconvert/gstautoconvert.h b/gst/autoconvert/gstautoconvert.h index ae40e63..eaa4f02 100644 --- a/gst/autoconvert/gstautoconvert.h +++ b/gst/autoconvert/gstautoconvert.h @@ -41,7 +41,7 @@ struct _GstAutoConvert /*< private >*/ GstBin bin; /* we extend GstBin */ - volatile GList *factories; + GList *factories; GstPad *sinkpad; GstPad *srcpad; -- 2.7.4