gst-inspect: fix unused-const-variable error in windows
authorAndoni Morales Alastruey <ylatuya@gmail.com>
Wed, 24 Apr 2019 16:22:06 +0000 (18:22 +0200)
committerTim-Philipp Müller <tim@centricular.com>
Wed, 7 Aug 2019 08:07:08 +0000 (09:07 +0100)
../tools/gst-inspect.c:44:20: error: 'DEFAULT_PAGER' defined but not used [-Werror=unused-const-variable=]

tools/gst-inspect.c

index 03c9467..1b5ed83 100644 (file)
@@ -41,7 +41,6 @@
 #   include <sys/wait.h>
 #endif
 
-static const gchar DEFAULT_PAGER[] = "less";
 
 /* "R" : support color
  * "X" : do not clear the screen when leaving the pager
@@ -52,6 +51,7 @@ static const gchar DEFAULT_PAGER[] = "less";
 gboolean colored_output = TRUE;
 
 #ifdef G_OS_UNIX
+static const gchar DEFAULT_PAGER[] = "less";
 GPid child_pid = -1;
 #endif
 GMainLoop *loop = NULL;