glwindow/cocoa: silence unused-variable warning

We are using ARC to cleanup after ourselves.

../gst-libs/gst/gl/cocoa/gstglwindow_cocoa.m:159:20: error: unused variable 'queue' [-Werror,-Wunused-variable]
  dispatch_queue_t queue = (__bridge_transfer dispatch_queue_t) window->priv->gl_queue;
                   ^
This commit is contained in:
Matthew Waters 2019-08-30 13:00:14 +10:00
parent 8b72e4b2a5
commit fc539f6162

View file

@ -157,6 +157,7 @@ gst_gl_window_cocoa_finalize (GObject * object)
#if OS_OBJECT_USE_OBJC
/* Let ARC clean up our queue */
dispatch_queue_t queue = (__bridge_transfer dispatch_queue_t) window->priv->gl_queue;
(void) queue;
#else
dispatch_release (window->priv->gl_queue);
#endif