From a6ee6be9602f64599b40e01321bd771b17d94f39 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 7 Jan 2013 10:49:21 +0100 Subject: TagPool: use the Mutex class instead of GStaticMutex --- src/TagPool.cxx | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'src/TagPool.cxx') diff --git a/src/TagPool.cxx b/src/TagPool.cxx index ce715a15..f529cda6 100644 --- a/src/TagPool.cxx +++ b/src/TagPool.cxx @@ -22,17 +22,7 @@ #include -#if GCC_CHECK_VERSION(4, 2) -/* workaround for a warning caused by G_STATIC_MUTEX_INIT */ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wmissing-field-initializers" -#endif - -GStaticMutex tag_pool_lock = G_STATIC_MUTEX_INIT; - -#if GCC_CHECK_VERSION(4, 2) -#pragma GCC diagnostic pop -#endif +Mutex tag_pool_lock; #define NUM_SLOTS 4096 -- cgit v1.2.3