libs: window: don't add an unused function
authorVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
Tue, 11 Apr 2017 16:50:35 +0000 (18:50 +0200)
committerVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
Tue, 11 Apr 2017 17:22:38 +0000 (19:22 +0200)
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

index 001802c..f3d6ab0 100644 (file)
@@ -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)