From 2bff6da69dd004a0a22575bb074d7854fbf1d8dd Mon Sep 17 00:00:00 2001 From: Alexander Kanavin Date: Tue, 4 Mar 2014 16:09:18 +0200 Subject: [PATCH] tests: fix compiler warnings --- tests/check_signon.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/check_signon.c b/tests/check_signon.c index f6b9260..afe291e 100644 --- a/tests/check_signon.c +++ b/tests/check_signon.c @@ -72,7 +72,9 @@ _run_mainloop () static void _setup () { +#if !GLIB_CHECK_VERSION (2, 36, 0) g_type_init (); +#endif if (main_loop == NULL) { main_loop = g_main_loop_new (NULL, FALSE); } @@ -974,7 +976,7 @@ static gboolean _contains(gchar **mechs, gchar *mech) return present; } -static void identity_info_cb(SignonIdentity *self, const SignonIdentityInfo *info, const GError *error, gpointer user_data) +static void identity_info_cb(SignonIdentity *self, SignonIdentityInfo *info, const GError *error, gpointer user_data) { if (error) { -- 2.7.4