[grilo-plugins/wip/hadess/warnings-fixes: 7/11] tests: fix warnings on tmdb fast resolution



commit f296049c7bce1990cd50f998d3755d69c5c181f9
Author: Victor Toso <me victortoso com>
Date:   Sat Oct 22 00:01:43 2016 +0200

    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

 tests/tmdb/test_tmdb_fast_resolution.c | 7 +++++--
 1 file 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 ();
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]