diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2016-03-24 14:08:46 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2016-03-24 14:08:46 +0200 |
commit | 10bc9a7efc75e8d8676f77d1fd7745744525e5ac (patch) | |
tree | 3c61c70c5a33786c0af845291b72b0f849bc1c42 /tests | |
parent | 795f63659ccb68d85ae3e2195c61017f07a9ec0c (diff) |
gl/gtk: Fix compiler warning in example
fxtest.c: In function ‘main’:
fxtest.c:190:3: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement]
GtkWidget *window;
^~~~~~~~~
Diffstat (limited to 'tests')
-rw-r--r-- | tests/examples/gl/gtk/fxtest/fxtest.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/examples/gl/gtk/fxtest/fxtest.c b/tests/examples/gl/gtk/fxtest/fxtest.c index 6200659a0..4b60b543f 100644 --- a/tests/examples/gl/gtk/fxtest/fxtest.c +++ b/tests/examples/gl/gtk/fxtest/fxtest.c @@ -183,10 +183,6 @@ main (gint argc, gchar * argv[]) GstBus *bus; GError *error = NULL; -#ifdef HAVE_X11 - XInitThreads (); -#endif - GtkWidget *window; GtkWidget *screen; GtkWidget *vbox, *combo; @@ -204,6 +200,10 @@ main (gint argc, gchar * argv[]) {NULL} }; +#ifdef HAVE_X11 + XInitThreads (); +#endif + context = g_option_context_new (NULL); g_option_context_add_main_entries (context, options, NULL); g_option_context_add_group (context, gst_init_get_option_group ()); |