summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>2016-04-29 12:53:06 +0200
committerVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>2016-04-29 13:14:46 +0200
commit3fcfd40fb5817a6f0c3cb52aff7202baad1f5b78 (patch)
tree5d16c1dd60a22f0ec8e7f7bc64b3cd8201918874 /tests
parent74ebee5339529fd08eedcac24966f1406f8f3109 (diff)
tests: display: guard possible unused variables
https://bugzilla.gnome.org/show_bug.cgi?id=765702
Diffstat (limited to 'tests')
-rw-r--r--tests/test-display.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/test-display.c b/tests/test-display.c
index 4a995b25..be9c24be 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);