[grilo-plugins/wip/hadess/warnings-fixes: 10/11] tests: fix warning on games
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo-plugins/wip/hadess/warnings-fixes: 10/11] tests: fix warning on games
- Date: Tue, 12 Feb 2019 01:48:14 +0000 (UTC)
commit c4feb67ef45a7231fd06718f9e98167f0c564135
Author: Victor Toso <me victortoso com>
Date: Sat Oct 22 00:17:41 2016 +0200
tests: fix warning on games
warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
gint result = g_test_run ();
^~~~
https://bugzilla.gnome.org/show_bug.cgi?id=768557
tests/games/test_games.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/tests/games/test_games.c b/tests/games/test_games.c
index 92b656e..0c3fffc 100644
--- a/tests/games/test_games.c
+++ b/tests/games/test_games.c
@@ -338,6 +338,8 @@ test_resolve_keys_found (void)
int
main(int argc, char **argv)
{
+ gint result;
+
g_setenv ("GRL_PLUGIN_PATH", LUA_FACTORY_PLUGIN_PATH, TRUE);
g_setenv ("GRL_LUA_SOURCES_PATH", LUA_SOURCES_PATH, TRUE);
g_setenv ("GRL_PLUGIN_LIST", "grl-lua-factory", TRUE);
@@ -354,7 +356,7 @@ main(int argc, char **argv)
g_test_add_func ("/thegamesdb/resolve/thumbnails-found", test_resolve_thumbnails_found);
g_test_add_func ("/thegamesdb/resolve/genre-found", test_resolve_genres_found);
- 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]