From: Christian Dywan Date: Sun, 30 Aug 2009 13:29:38 +0000 (+0200) Subject: Fix unused get_type_function warning with libsoup < 2.27.92 X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e09ea1ef3ae367a9ea3c28e65b4ea94e562de541;p=midori Fix unused get_type_function warning with libsoup < 2.27.92 --- diff --git a/midori/main.c b/midori/main.c index 8a3f2299..56d69e8f 100644 --- a/midori/main.c +++ b/midori/main.c @@ -1093,7 +1093,6 @@ midori_soup_session_prepare (SoupSession* session, MidoriWebSettings* settings) { GModule* module; - GType (*get_type_function) (void); SoupSessionFeature* feature; gchar* config_file; @@ -1101,6 +1100,7 @@ midori_soup_session_prepare (SoupSession* session, if ((module = g_module_open ("libsoup-gnome-2.4.so", G_MODULE_BIND_LOCAL))) { #ifdef HAVE_LIBSOUP_2_27_92 + GType (*get_type_function) (void); if (g_module_symbol (module, "soup_password_manager_gnome_get_type", (void*) &get_type_function)) soup_session_add_feature_by_type (session, get_type_function ());