From 3fcfd40fb5817a6f0c3cb52aff7202baad1f5b78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Manuel=20J=C3=A1quez=20Leal?= Date: Fri, 29 Apr 2016 12:53:06 +0200 Subject: [PATCH] tests: display: guard possible unused variables https://bugzilla.gnome.org/show_bug.cgi?id=765702 --- tests/test-display.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tests/test-display.c b/tests/test-display.c index 4a995b25f6..be9c24be21 100644 --- a/tests/test-display.c +++ b/tests/test-display.c @@ -268,8 +268,14 @@ dump_info (GstVaapiDisplay * display) int main (int argc, char *argv[]) { - GstVaapiDisplay *display, *display2; - guint width, height, par_n, par_d; + GstVaapiDisplay *display; +#if USE_X11 + GstVaapiDisplay *display2; +#endif +#if USE_X11 || USE_WAYLAND + guint width, height; + guint par_n, par_d; +#endif gst_init (&argc, &argv);