diff options
author | Victor Toso <me@victortoso.com> | 2016-10-21 23:47:20 +0200 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2019-02-12 02:44:11 +0100 |
commit | 371e4f95fe623550e3638f59c76ba5aba9a81095 (patch) | |
tree | de3893d0a28c998c4c805366b6ddb36dbf329a9d /tests | |
parent | cdd42ba232f38440877bb8879d244f0b87665619 (diff) | |
download | grilo-plugins-371e4f95fe623550e3638f59c76ba5aba9a81095.tar.gz |
tests: fix warnings on thetvdb resolve episodes
-Wdiscarded-qualifiers and -Wdeclaration-after-statement such as:
-Wdiscarded-qualifiers
warning: initialization discards ‘const’ qualifier from pointer target type
"tt0409591", "446714", "SH774951", "2006-10-05",
^~~~~~~~~~~~
-Wdeclaration-after-statement
warning: ISO C90 forbids mixed declarations and code
gint result = g_test_run ();
^~~~
https://bugzilla.gnome.org/show_bug.cgi?id=768557
Diffstat (limited to 'tests')
-rw-r--r-- | tests/thetvdb/test_thetvdb_resolve_episodes.c | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/tests/thetvdb/test_thetvdb_resolve_episodes.c b/tests/thetvdb/test_thetvdb_resolve_episodes.c index 11e68d2..8ff302b 100644 --- a/tests/thetvdb/test_thetvdb_resolve_episodes.c +++ b/tests/thetvdb/test_thetvdb_resolve_episodes.c @@ -96,15 +96,15 @@ test_episodes_from_episode (void) guint i; struct { - gchar *show; - gchar *title; + const gchar *show; + const gchar *title; gint season; gint episode; - gchar *imdb; - gchar *tvdb_id; - gchar *zap2it_id; - gchar *publication_date; - gchar *url_episode_screen; + const gchar *imdb; + const gchar *tvdb_id; + const gchar *zap2it_id; + const gchar *publication_date; + const gchar *url_episode_screen; } videos[] = { { "Boardwalk Empire", "New York Sour", 4, 1, "tt2483070", "4596908", "SH01308836", "2013-09-08", @@ -155,6 +155,8 @@ test_episodes_from_episode (void) gint main (gint argc, gchar **argv) { + gint result; + g_setenv ("GRL_PLUGIN_PATH", THETVDB_PLUGIN_PATH, TRUE); g_setenv ("GRL_PLUGIN_LIST", THETVDB_ID, TRUE); g_setenv ("GRL_NET_MOCKED", THETVDB_PLUGIN_TEST_DATA_PATH "config.ini", TRUE); @@ -166,7 +168,7 @@ main (gint argc, gchar **argv) g_test_add_func ("/thetvdb/resolve/episodes_from_episode", test_episodes_from_episode); - gint result = g_test_run (); + result = g_test_run (); test_shutdown_thetvdb (); |