glwindow/cocoa: fix warnings reported by XCode 8.1.0
authorJosep Torra <jtorra@oblong.com>
Sat, 1 Apr 2017 14:49:15 +0000 (16:49 +0200)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 19:32:27 +0000 (19:32 +0000)
gstglwindow_cocoa.m:345:16: error: unused variable 'window' [-Werror,-Wunused-variable]
  GstGLWindow *window = GST_GL_WINDOW (window_cocoa);
               ^
gstglwindow_cocoa.m:445:11: error: unused variable 'external_view' [-Werror,-Wunused-variable]
  NSView *external_view = (__bridge NSView *)priv->external_view;
          ^

gst-libs/gst/gl/cocoa/gstglwindow_cocoa.m

index b7de2b5bc6e5f03a13b3ec0d8cd316b4089c9e85..7bc822a7e09ad137c40a2ee7f3877831d7f2e1de 100644 (file)
@@ -342,7 +342,6 @@ static void
 gst_gl_cocoa_draw_cb (GstGLWindowCocoa *window_cocoa)
 {
   GstGLWindowCocoaPrivate *priv = window_cocoa->priv;
-  GstGLWindow *window = GST_GL_WINDOW (window_cocoa);
   GstGLNSWindow *internal_win_id = (__bridge GstGLNSWindow *)priv->internal_win_id;
 
   if (internal_win_id && ![internal_win_id isClosed]) {
@@ -442,7 +441,6 @@ gst_gl_window_cocoa_send_message_async (GstGLWindow * window,
   window_cocoa = cocoa;
   GstGLWindowCocoaPrivate *priv = window_cocoa->priv;
   GstGLNSWindow *internal_win_id = (__bridge GstGLNSWindow *)priv->internal_win_id;
-  NSView *external_view = (__bridge NSView *)priv->external_view;
 
   self = [super initWithContentRect: contentRect
         styleMask: styleMask backing: bufferingType