From bd2e304ea44ef9e6a09ad771fedcb200c22d8a86 Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=ADctor=20Manuel=20J=C3=A1quez=20Leal?= Date: Tue, 11 Apr 2017 18:50:35 +0200 Subject: [PATCH] libs: window: don't add an unused function The macro GST_VAAPI_OBJECT_DEFINE_CLASS_WITH_CODE only defines a function that is never used, thus when compiling we might see this warning (clang): gstvaapiwindow.c:147:1: warning: unused function 'gst_vaapi_window_class' [-Wunused-function] GST_VAAPI_OBJECT_DEFINE_CLASS_WITH_CODE (GstVaapiWindow, ^ https://bugzilla.gnome.org/show_bug.cgi?id=759533 --- gst-libs/gst/vaapi/gstvaapiwindow.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/gst-libs/gst/vaapi/gstvaapiwindow.c b/gst-libs/gst/vaapi/gstvaapiwindow.c index 001802c..f3d6ab0 100644 --- a/gst-libs/gst/vaapi/gstvaapiwindow.c +++ b/gst-libs/gst/vaapi/gstvaapiwindow.c @@ -144,9 +144,6 @@ gst_vaapi_window_class_init (GstVaapiWindowClass * klass) gst_vaapi_window_finalize; } -GST_VAAPI_OBJECT_DEFINE_CLASS_WITH_CODE (GstVaapiWindow, - gst_vaapi_window, gst_vaapi_window_class_init (&g_class)); - GstVaapiWindow * gst_vaapi_window_new_internal (const GstVaapiWindowClass * window_class, GstVaapiDisplay * display, GstVaapiID id, guint width, guint height) -- 2.7.4