Markup AUTOLOCK with unused to avoid warnings

This commit is contained in:
Alexander Larsson
2015-09-03 20:39:40 +02:00
parent 8bbe3b3e41
commit 58fb2c4e50

View File

@@ -125,7 +125,7 @@ static inline GMutex *xdg_app_auto_lock_helper (GMutex *mutex)
}
#define AUTOLOCK(name) __attribute__((cleanup(xdg_app_auto_unlock_helper))) GMutex * G_PASTE(auto_unlock, __LINE__) = xdg_app_auto_lock_helper (&G_LOCK_NAME (name))
#define AUTOLOCK(name) G_GNUC_UNUSED __attribute__((cleanup(xdg_app_auto_unlock_helper))) GMutex * G_PASTE(auto_unlock, __LINE__) = xdg_app_auto_lock_helper (&G_LOCK_NAME (name))
G_DEFINE_AUTOPTR_CLEANUP_FUNC(OstreeRepo, g_object_unref)
G_DEFINE_AUTOPTR_CLEANUP_FUNC(OstreeMutableTree, g_object_unref)