about summary refs log tree commit diff stats
path: root/xombrero.c
diff options
context:
space:
mode:
authorJosh Rickmar <jrick@devio.us>2012-07-15 13:30:56 -0400
committerJosh Rickmar <jrick@devio.us>2012-07-15 13:30:56 -0400
commit51eb218a034520ac82f5c9279834f8f7c5eefacf (patch)
tree00fb571c95126f093284d1205bf233a75a3157e2 /xombrero.c
parent22d00005d773bbb4b404d772ac88734225eb3460 (diff)
downloadxombrero-51eb218a034520ac82f5c9279834f8f7c5eefacf.tar.gz
This should have made it into the last commit.
Diffstat (limited to 'xombrero.c')
-rw-r--r--xombrero.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/xombrero.c b/xombrero.c
index 209f725..b4e07cb 100644
--- a/xombrero.c
+++ b/xombrero.c
@@ -8258,13 +8258,19 @@ complain:
 void
 mtx_unlock(void)
 {
+#ifdef DEBUG
 	char		*s = NULL;
+#endif
 
 	if (my_gdk_mtx.depth <= 0) {
+#ifdef DEBUG
 		s = "unlock <= 0";
+#endif
 		goto complain;
 	} else if (my_gdk_mtx.depth != 1) {
+#ifdef DEBUG
 		s = "unlock != 1";
+#endif
 		g_static_rec_mutex_unlock_full(&my_gdk_mtx);
 		goto complain;
 	}
@@ -8275,7 +8281,6 @@ complain:
 	if (mtx_complain == 0) {
 		DNPRINTF(XT_D_MTX, "buggy mutex implementation detected(%s), "
 		    "work around implemented", s);
-		s = s; /* *sigh* gcc */
 		mtx_complain = 1;
 	}
 }