From 58fb2c4e50afda8709a524f75beb07158b92f129 Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Thu, 3 Sep 2015 20:39:40 +0200 Subject: [PATCH] Markup AUTOLOCK with unused to avoid warnings --- lib/xdg-app-utils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/xdg-app-utils.h b/lib/xdg-app-utils.h index d4d5c13d..a6441b90 100644 --- a/lib/xdg-app-utils.h +++ b/lib/xdg-app-utils.h @@ -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)