From 78a317d42f930c31e234a7eebc525c2c1dd914e7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Pawe=C5=82=20Forysiuk?= Date: Fri, 10 Aug 2012 22:11:49 +0200 Subject: [PATCH] Silence some "defined but not used" warnigs when crosscompiling --- midori/midori-app.c | 2 ++ midori/midori-locationaction.c | 4 ++++ 2 files changed, 6 insertions(+) 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) -- 2.39.5