mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-01 15:03:39 +02:00
Fix g_variant_get_gtype() deprecation message
Instead of: warning: ‘g_variant_get_gtype’ is deprecated (declared at ../../gobject/glib-types.h:242): Use '((GType) ((21) << (2)))' instead [-Wdeprecated-declarations] show: warning: ‘g_variant_get_gtype’ is deprecated (declared at ../../gobject/glib-types.h:242): Use ''G_VARIANT_GET_TYPE'' instead [-Wdeprecated-declarations] Also, document the macro-expansion problem in the G_GNUC_DEPRECATED_FOR docs
This commit is contained in:
@@ -238,7 +238,7 @@ GType g_main_loop_get_type (void) G_GNUC_CONST;
|
||||
GType g_main_context_get_type (void) G_GNUC_CONST;
|
||||
GType g_source_get_type (void) G_GNUC_CONST;
|
||||
|
||||
GLIB_DEPRECATED_FOR(G_TYPE_VARIANT)
|
||||
GLIB_DEPRECATED_FOR('G_TYPE_VARIANT')
|
||||
GType g_variant_get_gtype (void) G_GNUC_CONST;
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user