[at-spi2-atk] Fix unused functions when compiling w/o debug



commit b1a9edd21c912279e7eec066e859139c870ca5e8
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Jun 13 18:08:15 2012 +0100

    Fix unused functions when compiling w/o debug
    
    https://bugzilla.gnome.org/show_bug.cgi?id=678045

 atk-adaptor/accessible-cache.c |    4 +++-
 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 */
 
 /*---------------------------------------------------------------------------*/
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]