summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorVictor Toso <me@victortoso.com>2016-10-22 00:01:43 +0200
committerBastien Nocera <hadess@hadess.net>2019-02-12 02:44:11 +0100
commitf296049c7bce1990cd50f998d3755d69c5c181f9 (patch)
treeb220a1e9a83dc81d51a599f087975d8baaaacec5 /tests
parent68161931bd74cafb1092e0eb559e9359fd1d1ca3 (diff)
downloadgrilo-plugins-f296049c7bce1990cd50f998d3755d69c5c181f9.tar.gz
tests: fix warnings on tmdb fast resolution
warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] GrlSource *source = test_get_source(); ^~~~~~~~~ https://bugzilla.gnome.org/show_bug.cgi?id=768557
Diffstat (limited to 'tests')
-rw-r--r--tests/tmdb/test_tmdb_fast_resolution.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/tmdb/test_tmdb_fast_resolution.c b/tests/tmdb/test_tmdb_fast_resolution.c
index d22440b..d5b8573 100644
--- a/tests/tmdb/test_tmdb_fast_resolution.c
+++ b/tests/tmdb/test_tmdb_fast_resolution.c
@@ -44,6 +44,7 @@ test_fast_resolution (void)
GrlOperationOptions *options = NULL;
GrlMedia *media = NULL;
GError *error = NULL;
+ GrlSource *source;
test_setup_tmdb ();
@@ -61,7 +62,7 @@ test_fast_resolution (void)
g_assert (media != NULL);
grl_media_set_title (media, "TMDBTestTitle");
- GrlSource *source = test_get_source();
+ source = test_get_source();
g_assert (source);
grl_source_resolve_sync (source,
media,
@@ -95,6 +96,8 @@ test_fast_resolution (void)
int
main(int argc, char **argv)
{
+ gint result;
+
g_setenv ("GRL_PLUGIN_PATH", GRILO_PLUGINS_TESTS_TMDB_PLUGIN_PATH, TRUE);
g_setenv ("GRL_PLUGIN_LIST", TMDB_PLUGIN_ID, TRUE);
@@ -108,7 +111,7 @@ main(int argc, char **argv)
g_test_add_func ("/tmdb/fast-resolution", test_fast_resolution);
- gint result = g_test_run ();
+ result = g_test_run ();
grl_deinit ();