From e59ac0bc2daad41b2043c6f63989ffc5add1b76b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Fri, 24 Jun 2022 12:34:28 +0200 Subject: [PATCH] gthread-posix: Use G_NO_INLINE instead of actual attribute Even if this is gcc/clang-only code, it's just better to use the generic macros we now have. --- glib/gthread-posix.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/glib/gthread-posix.c b/glib/gthread-posix.c index 751533f56..fbf7531fe 100644 --- a/glib/gthread-posix.c +++ b/glib/gthread-posix.c @@ -1490,7 +1490,8 @@ g_mutex_clear (GMutex *mutex) } } -static void __attribute__((noinline)) +G_GNUC_NO_INLINE +static void g_mutex_lock_slowpath (GMutex *mutex) { /* Set to contended. If it was empty before then we @@ -1505,7 +1506,8 @@ g_mutex_lock_slowpath (GMutex *mutex) } } -static void __attribute__((noinline)) +G_GNUC_NO_INLINE +static void g_mutex_unlock_slowpath (GMutex *mutex, guint prev) {