From: Paweł Forysiuk Date: Fri, 10 Aug 2012 20:11:49 +0000 (+0200) Subject: Silence some "defined but not used" warnigs when crosscompiling X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=78a317d42f930c31e234a7eebc525c2c1dd914e7;p=midori Silence some "defined but not used" warnigs when crosscompiling --- diff --git a/midori/midori-app.c b/midori/midori-app.c index 3b6e4801..1c87460d 100644 --- a/midori/midori-app.c +++ b/midori/midori-app.c @@ -1444,7 +1444,9 @@ midori_app_setup (gint *argc, GtkIconSet* icon_set; GtkIconFactory* factory; gsize i; + #ifndef G_OS_WIN32 gchar* executable; + #endif gboolean success; static GtkStockItem items[] = diff --git a/midori/midori-locationaction.c b/midori/midori-locationaction.c index 29c7f624..dc59549c 100644 --- a/midori/midori-locationaction.c +++ b/midori/midori-locationaction.c @@ -376,10 +376,14 @@ midori_location_action_add_search_engines (MidoriLocationAction* action, { KatzeItem* item; gint i = 0; + #ifndef G_OS_WIN32 GtkStyle* style; + #endif gtk_widget_realize (action->treeview); + #ifndef G_OS_WIN32 style = gtk_widget_get_style (action->treeview); + #endif /* FIXME: choose 3 most frequently except for default */ KATZE_ARRAY_FOREACH_ITEM (item, action->search_engines)