From e45f187d1386e95cbb92d5090a21f8acd5ff942b Mon Sep 17 00:00:00 2001 From: "Jan Alexander Steffens (heftig)" Date: Mon, 23 Mar 2020 12:36:01 +0100 Subject: [PATCH] gstdeviceproviderfactory: Remove volatile from provider storage MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Avoids a few compiler warnings: ../subprojects/gstreamer/gst/gstdeviceproviderfactory.c: In function ‘gst_device_provider_factory_finalize’: ../subprojects/gstreamer/gst/gstdeviceproviderfactory.c:96:12: warning: assignment discards ‘volatile’ qualifier from pointer target type [-Wdiscarded-qualifiers] 96 | provider = g_atomic_pointer_get (&factory->provider); | ^ ../subprojects/gstreamer/gst/gstdeviceproviderfactory.c: In function ‘gst_device_provider_factory_get’: ../subprojects/gstreamer/gst/gstdeviceproviderfactory.c:276:19: warning: assignment discards ‘volatile’ qualifier from pointer target type [-Wdiscarded-qualifiers] 276 | device_provider = g_atomic_pointer_get (&newfactory->provider); | ^ ../subprojects/gstreamer/gst/gstdeviceproviderfactory.c:309:21: warning: assignment discards ‘volatile’ qualifier from pointer target type [-Wdiscarded-qualifiers] 309 | device_provider = g_atomic_pointer_get (&newfactory->provider); | https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/414 --- gst/gst_private.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/gst_private.h b/gst/gst_private.h index 2c686e69ba..88658c596b 100644 --- a/gst/gst_private.h +++ b/gst/gst_private.h @@ -488,7 +488,7 @@ struct _GstDeviceProviderFactory { GType type; /* unique GType the device factory or 0 if not loaded */ - volatile GstDeviceProvider *provider; + GstDeviceProvider *provider; gpointer metadata; gpointer _gst_reserved[GST_PADDING];