about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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;
 	}
 }