summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.com>2020-05-01 14:43:55 +0100
committerTim-Philipp Müller <tim@centricular.com>2020-05-01 14:50:58 +0100
commit270f2f83a1fd320f3a436a78a30a53dacf09e0b6 (patch)
tree98124a17cb043b781d350d026cd61ab4a73ebf3b
parentb2666520433ec6257827bba7bba55e6387039b1a (diff)
downloadgstreamer-plugins-bad-270f2f83a1fd320f3a436a78a30a53dacf09e0b6.tar.gz
autoconvert: fix compiler warnings with g_atomic on recent GLib versions
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: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1237>
-rw-r--r--gst/autoconvert/gstautoconvert.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/autoconvert/gstautoconvert.h b/gst/autoconvert/gstautoconvert.h
index ae40e63ee..eaa4f02c9 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;