mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-24 22:46:15 +01:00
Prevent unused variable warnings from G_DEFINE_DYNAMIC_TYPE
This commit is contained in:
parent
3c59c38404
commit
6fe2f5f11b
@ -193,7 +193,7 @@ type_name##_get_type (void) \
|
|||||||
static void \
|
static void \
|
||||||
type_name##_register_type (GTypeModule *type_module) \
|
type_name##_register_type (GTypeModule *type_module) \
|
||||||
{ \
|
{ \
|
||||||
GType g_define_type_id; \
|
GType g_define_type_id G_GNUC_UNUSED; \
|
||||||
const GTypeInfo g_define_type_info = { \
|
const GTypeInfo g_define_type_info = { \
|
||||||
sizeof (TypeName##Class), \
|
sizeof (TypeName##Class), \
|
||||||
(GBaseInitFunc) NULL, \
|
(GBaseInitFunc) NULL, \
|
||||||
|
Loading…
Reference in New Issue
Block a user