]> spindle.queued.net Git - midori/commitdiff
Guard debug variables in Adblock with G_ENABLE_DEBUG
authorEnrico Tröger <enrico.troeger@uvena.de>
Fri, 14 May 2010 20:41:04 +0000 (22:41 +0200)
committerChristian Dywan <christian@twotoasts.de>
Fri, 14 May 2010 23:06:17 +0000 (01:06 +0200)
extensions/adblock.c

index b15becf9317a7b94037dcc5a801fa3ce488ca4a5..8b021afd10b4312bbc712873ca88fcd60de4fce3 100644 (file)
@@ -44,7 +44,9 @@ static GHashTable* keys;
 static gchar* blockcss = NULL;
 static gchar* blockcssprivate = NULL;
 static gchar* blockscript = NULL;
+#ifdef G_ENABLE_DEBUG
 static guint debug;
+#endif
 
 static gboolean
 adblock_parse_file (gchar* path);
@@ -1356,7 +1358,9 @@ static void
 adblock_activate_cb (MidoriExtension* extension,
                      MidoriApp*       app)
 {
+    #ifdef G_ENABLE_DEBUG
     const gchar* debug_mode;
+    #endif
     KatzeArray* browsers;
     MidoriBrowser* browser;
     guint i;