[grilo-plugins/wip/hadess/warnings-fixes: 8/11] tests: fix warnings on tmdb fast resolution by id
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo-plugins/wip/hadess/warnings-fixes: 8/11] tests: fix warnings on tmdb fast resolution by id
- Date: Tue, 12 Feb 2019 01:48:04 +0000 (UTC)
commit 671fce56a51fa16cc38230e4099930bb04802480
Author: Victor Toso <me victortoso com>
Date: Sat Oct 22 00:03:19 2016 +0200
tests: fix warnings on tmdb fast resolution by id
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_by_id.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/tests/tmdb/test_tmdb_fast_resolution_by_id.c b/tests/tmdb/test_tmdb_fast_resolution_by_id.c
index 1fe641b..05d6734 100644
--- a/tests/tmdb/test_tmdb_fast_resolution_by_id.c
+++ b/tests/tmdb/test_tmdb_fast_resolution_by_id.c
@@ -44,6 +44,7 @@ test_fast_resolution_by_id (void)
GrlOperationOptions *options = NULL;
GrlMedia *media = NULL;
GError *error = NULL;
+ GrlSource *source;
test_setup_tmdb ();
@@ -63,7 +64,7 @@ test_fast_resolution_by_id (void)
g_assert (media != NULL);
grl_data_set_string (GRL_DATA (media), tmdb_id, "10528");
- GrlSource *source = test_get_source();
+ source = test_get_source();
g_assert (source);
grl_source_resolve_sync (source,
media,
@@ -97,6 +98,8 @@ test_fast_resolution_by_id (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);
@@ -110,7 +113,7 @@ main(int argc, char **argv)
g_test_add_func ("/tmdb/fast-resolution-by-id", test_fast_resolution_by_id);
- 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]