mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
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:
parent
8b72e4b2a5
commit
fc539f6162
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue