]> spindle.queued.net Git - midori/commitdiff
Silence some "defined but not used" warnigs when crosscompiling
authorPaweł Forysiuk <tuxator@o2.pl>
Fri, 10 Aug 2012 20:11:49 +0000 (22:11 +0200)
committerChristian Dywan <christian@twotoasts.de>
Wed, 15 Aug 2012 22:19:48 +0000 (00:19 +0200)
midori/midori-app.c
midori/midori-locationaction.c

index 3b6e48019ca1b60a49ed7309cba5a15734e83462..1c87460d5a86a6d24e6108beadcc98bf5443d5e1 100644 (file)
@@ -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[] =
index 29c7f624d9897106b5c17c1f87b0fb400f632ecc..dc59549c9b072553f56ddd3680fd31e09c3845ad 100644 (file)
@@ -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)