cleanup: Replace G_GNUC_NO_INLINE with G_NO_INLINE

As per this we can also now mark G_GNUC_NO_INLINE as
GLIB_AVAILABLE_MACRO_IN_2_58, given that we don't have anymore headers
using it.
This commit is contained in:
Marco Trevisan (Treviño) 2022-06-24 14:46:41 +02:00
parent 15cd0f0461
commit a6f8fe071e
2 changed files with 8 additions and 11 deletions

View File

@ -235,11 +235,6 @@
*
* Since: 2.58
*/
/* Note: We cant annotate this with GLIB_AVAILABLE_MACRO_IN_2_58 because its
* used within the GLib headers in function declarations which are always
* evaluated when a header is included. This results in warnings in third party
* code which includes glib.h, even if the third party code doesnt use the new
* macro itself. */
#if g_macro__has_attribute(__pure__)
#define G_GNUC_PURE __attribute__((__pure__))
@ -254,9 +249,11 @@
#endif
#if g_macro__has_attribute(__noinline__)
#define G_GNUC_NO_INLINE __attribute__ ((__noinline__))
#define G_GNUC_NO_INLINE __attribute__ ((__noinline__)) \
GLIB_AVAILABLE_MACRO_IN_2_58
#else
#define G_GNUC_NO_INLINE
#define G_GNUC_NO_INLINE \
GLIB_AVAILABLE_MACRO_IN_2_58
#endif
/**

View File

@ -2158,7 +2158,7 @@ type_name##_get_type (void) \
return static_g_define_type_id; \
} /* closes type_name##_get_type() */ \
\
G_GNUC_NO_INLINE \
G_NO_INLINE \
static GType \
type_name##_get_type_once (void) \
{ \
@ -2327,7 +2327,7 @@ type_name##_get_type (void) \
return static_g_define_type_id; \
} \
\
G_GNUC_NO_INLINE \
G_NO_INLINE \
static GType \
type_name##_get_type_once (void) \
{ \
@ -2364,7 +2364,7 @@ type_name##_get_type (void) \
return static_g_define_type_id; \
} \
\
G_GNUC_NO_INLINE \
G_NO_INLINE \
static GType \
type_name##_get_type_once (void) \
{ \
@ -2417,7 +2417,7 @@ type_name##_get_type (void) \
return static_g_define_type_id; \
} \
\
G_GNUC_NO_INLINE \
G_NO_INLINE \
static GType \
type_name##_get_type_once (void) \
{ \