summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2012-06-13 18:08:15 +0100
committerBastien Nocera <hadess@hadess.net>2012-10-11 15:27:12 +0200
commitb1a9edd21c912279e7eec066e859139c870ca5e8 (patch)
treee40138ec14ba37e17473af4eed275d0c47c1a136
parente169ae36e9b04b8b6f1891bed0be0a76f7ed8984 (diff)
downloadat-spi2-atk-b1a9edd21c912279e7eec066e859139c870ca5e8.tar.gz
Fix unused functions when compiling w/o debug
https://bugzilla.gnome.org/show_bug.cgi?id=678045
-rw-r--r--atk-adaptor/accessible-cache.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/atk-adaptor/accessible-cache.c b/atk-adaptor/accessible-cache.c
index 54a1449..d186130 100644
--- a/atk-adaptor/accessible-cache.c
+++ b/atk-adaptor/accessible-cache.c
@@ -192,8 +192,9 @@ add_object (SpiCache * cache, GObject * gobj)
/*---------------------------------------------------------------------------*/
static GStaticRecMutex cache_mutex = G_STATIC_REC_MUTEX_INIT;
-static GStaticMutex recursion_check_guard = G_STATIC_MUTEX_INIT;
+#ifdef SPI_ATK_DEBUG
+static GStaticMutex recursion_check_guard = G_STATIC_MUTEX_INIT;
static gboolean recursion_check = FALSE;
static gboolean
@@ -214,6 +215,7 @@ recursion_check_unset ()
recursion_check = FALSE;
g_static_mutex_unlock (&recursion_check_guard);
}
+#endif /* SPI_ATK_DEBUG */
/*---------------------------------------------------------------------------*/