From 89580cc2308cb8bd9d3cc6c673a2e0064b09e064 Mon Sep 17 00:00:00 2001 From: Jordan Petridis Date: Tue, 4 Aug 2020 21:15:01 +0300 Subject: gstvaapiminiobject.c: fix clang 10 warnings the typesystem checks in g_atomic_pointer_compare_and_exchange seem to trigger some false positives with clang 10 similar to gstreamer!584 Part-of: --- gst-libs/gst/vaapi/gstvaapiminiobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst-libs/gst/vaapi/gstvaapiminiobject.c b/gst-libs/gst/vaapi/gstvaapiminiobject.c index 52052ad3..7b189832 100644 --- a/gst-libs/gst/vaapi/gstvaapiminiobject.c +++ b/gst-libs/gst/vaapi/gstvaapiminiobject.c @@ -193,7 +193,7 @@ gst_vaapi_mini_object_replace (GstVaapiMiniObject ** old_object_ptr, gst_vaapi_mini_object_ref_internal (new_object); while (!g_atomic_pointer_compare_and_exchange ((gpointer *) old_object_ptr, - old_object, new_object)) + (gpointer) old_object, new_object)) old_object = g_atomic_pointer_get ((gpointer *) old_object_ptr); if (old_object) -- cgit v1.2.3