test: avoid unused warning for test-display
authorHe Junyan <junyan.he@hotmail.com>
Thu, 20 Feb 2020 16:58:47 +0000 (00:58 +0800)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Sat, 22 Feb 2020 12:59:13 +0000 (12:59 +0000)
meson -Dwith_x11=yes -Dwith_wayland=no -Dwith_drm=no -Dwith_egl=no
-Dwith_glx=no buildir

generate unused warnings.

tests/internal/test-display.c

index 068c155..e9ec126 100644 (file)
@@ -205,7 +205,7 @@ int
 main (int argc, char *argv[])
 {
   GstVaapiDisplay *display;
-#if USE_X11 || USE_WAYLAND
+#if USE_GLX || USE_WAYLAND
   guint width, height;
   guint par_n, par_d;
 #endif