From c82e51738fcae3c5952e551eebc0842b49c58ad0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Manuel=20J=C3=A1quez=20Leal?= Date: Fri, 3 Apr 2015 20:28:22 +0200 Subject: [PATCH] libs: remove unused variables clang reports these unused variables. Let's get rid of them. https://bugzilla.gnome.org/show_bug.cgi?id=747312 --- gst-libs/gst/vaapi/gstvaapidisplay_egl.c | 2 -- gst-libs/gst/vaapi/gstvaapiencoder_vp8.c | 3 --- 2 files changed, 5 deletions(-) diff --git a/gst-libs/gst/vaapi/gstvaapidisplay_egl.c b/gst-libs/gst/vaapi/gstvaapidisplay_egl.c index 30385d2b04..4d995eb391 100644 --- a/gst-libs/gst/vaapi/gstvaapidisplay_egl.c +++ b/gst-libs/gst/vaapi/gstvaapidisplay_egl.c @@ -258,8 +258,6 @@ gst_vaapi_display_loader_map_lookup_type (GstVaapiDisplayType type) /* --- EGL backend implementation --- */ /* ------------------------------------------------------------------------- */ -static const guint g_display_types = 1U << GST_VAAPI_DISPLAY_TYPE_EGL; - typedef struct { gpointer display; diff --git a/gst-libs/gst/vaapi/gstvaapiencoder_vp8.c b/gst-libs/gst/vaapi/gstvaapiencoder_vp8.c index a9afc1134c..dadccfd8c5 100644 --- a/gst-libs/gst/vaapi/gstvaapiencoder_vp8.c +++ b/gst-libs/gst/vaapi/gstvaapiencoder_vp8.c @@ -78,8 +78,6 @@ struct _GstVaapiEncoderVP8 static GstVaapiEncoderStatus ensure_profile (GstVaapiEncoderVP8 * encoder) { - GstVaapiProfile profile; - /* Always start from "simple" profile for maximum compatibility */ encoder->profile = GST_VAAPI_PROFILE_VP8; @@ -258,7 +256,6 @@ fill_picture (GstVaapiEncoderVP8 * encoder, GstVaapiEncPicture * picture, GstVaapiCodedBuffer * codedbuf, GstVaapiSurfaceProxy * surface) { - GstVaapiEncoder *const base_encoder = GST_VAAPI_ENCODER_CAST (encoder); VAEncPictureParameterBufferVP8 *const pic_param = picture->param; int i;