[grilo-plugins/wip/hadess/warnings-fixes: 4/11] tests: fix warnings on vimeo
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo-plugins/wip/hadess/warnings-fixes: 4/11] tests: fix warnings on vimeo
- Date: Tue, 12 Feb 2019 01:47:43 +0000 (UTC)
commit 6ebc687e860d439761975e6223bee20c32f93d90
Author: Victor Toso <me victortoso com>
Date: Fri Oct 21 23:51:54 2016 +0200
tests: fix warnings on vimeo
warning: ISO C90 forbids mixed declarations and code
gint result = g_test_run ();
^~~~
https://bugzilla.gnome.org/show_bug.cgi?id=768557
tests/vimeo/test_vimeo.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/tests/vimeo/test_vimeo.c b/tests/vimeo/test_vimeo.c
index 1b4f79b..5cf99c9 100644
--- a/tests/vimeo/test_vimeo.c
+++ b/tests/vimeo/test_vimeo.c
@@ -231,6 +231,8 @@ test_cancel (void)
int
main (int argc, char **argv)
{
+ gint result;
+
g_setenv ("GRL_PLUGIN_PATH", VIMEO_PLUGIN_PATH, TRUE);
g_setenv ("GRL_PLUGIN_LIST", VIMEO_ID, TRUE);
g_setenv ("GRL_NET_MOCKED", VIMEO_DATA_PATH "network-data.ini", TRUE);
@@ -245,7 +247,7 @@ main (int argc, char **argv)
g_test_add_func ("/vimeo/search/empty", test_search_empty);
g_test_add_func ("/vimeo/cancel", test_cancel);
- 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]