mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-03 17:35:44 +02:00
gtypemodule: use G_GNUC_UNUSED in G_DEFINE_DYNAMIC_TYPE_EXTENDED
We already do this in the normal case, might as well support it for the dynamic type module case as well. This prevents seeing a warning when not using the get_instance_private() in the dynamic type.
This commit is contained in:
parent
409202c1fd
commit
cb86c222cc
@ -182,6 +182,7 @@ static gint TypeName##_private_offset; \
|
|||||||
\
|
\
|
||||||
_G_DEFINE_TYPE_EXTENDED_CLASS_INIT(TypeName, type_name) \
|
_G_DEFINE_TYPE_EXTENDED_CLASS_INIT(TypeName, type_name) \
|
||||||
\
|
\
|
||||||
|
G_GNUC_UNUSED \
|
||||||
static inline gpointer \
|
static inline gpointer \
|
||||||
type_name##_get_instance_private (TypeName *self) \
|
type_name##_get_instance_private (TypeName *self) \
|
||||||
{ \
|
{ \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user