mirror of
https://github.com/flatpak/flatpak.git
synced 2026-10-01 01:53:56 -04:00
Markup AUTOLOCK with unused to avoid warnings
This commit is contained in:
1 parent
8bbe3b3e41
commit
58fb2c4e50
1 file changed
+1
-1
+1
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user