[grilo-plugins/wip/hadess/warnings-fixes: 9/11] tests: fix warnings on tmdb missing configuration



commit 6f2c98e6cb8c24f26bdfa443c8784ed8fe841e87
Author: Victor Toso <me victortoso com>
Date:   Sat Oct 22 00:15:36 2016 +0200

    tests: fix warnings on tmdb missing configuration
    
     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_missing_configuration.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/tests/tmdb/test_tmdb_missing_configuration.c b/tests/tmdb/test_tmdb_missing_configuration.c
index 8ffced4..e069546 100644
--- a/tests/tmdb/test_tmdb_missing_configuration.c
+++ b/tests/tmdb/test_tmdb_missing_configuration.c
@@ -33,6 +33,7 @@ test_missing_configuration (void)
   GrlMedia *media = NULL;
   GrlOperationOptions *options = NULL;
   GError *error = NULL;
+  GrlSource *source;
 
   test_setup_tmdb ();
 
@@ -41,7 +42,7 @@ test_missing_configuration (void)
   g_assert (media != NULL);
   grl_media_set_title (media, "Non-Empty");
 
-  GrlSource *source = test_get_source();
+  source = test_get_source();
   g_assert (source);
   options = grl_operation_options_new (NULL);
   g_assert (options != NULL);
@@ -66,6 +67,8 @@ test_missing_configuration (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);
 
@@ -79,7 +82,7 @@ main(int argc, char **argv)
 
   g_test_add_func ("/tmdb/missing-configuration", test_missing_configuration);
 
-  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]