diff options
author | Josh Rickmar <jrick@devio.us> | 2012-07-13 17:55:40 -0400 |
---|---|---|
committer | Josh Rickmar <jrick@devio.us> | 2012-07-13 17:55:40 -0400 |
commit | 22d00005d773bbb4b404d772ac88734225eb3460 (patch) | |
tree | d2a65bfce99baab57faf71170c5a361757d1d471 | |
parent | 45aad0702f99094e27b5aa197fd86f0fd48bce2d (diff) | |
download | xombrero-22d00005d773bbb4b404d772ac88734225eb3460.tar.gz |
Silence this warning for good.
-rw-r--r-- | xombrero.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/xombrero.c b/xombrero.c index c18715d..209f725 100644 --- a/xombrero.c +++ b/xombrero.c @@ -8225,14 +8225,21 @@ int mtx_complain; void mtx_lock(void) { +#ifdef DEBUG char *s = NULL; +#endif + g_static_rec_mutex_lock(&my_gdk_mtx); if (my_gdk_mtx.depth <= 0) { +#ifdef DEBUG s = "lock <= 0"; +#endif g_static_rec_mutex_lock(&my_gdk_mtx); goto complain; } else if (my_gdk_mtx.depth != 1) { +#ifdef DEBUG s = "lock != 1"; +#endif do { g_static_rec_mutex_unlock(&my_gdk_mtx); } while (my_gdk_mtx.depth > 1); @@ -8244,7 +8251,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; } } |