diff options
author | Christian Hergert <christian@hergert.me> | 2015-06-27 22:41:13 -0700 |
---|---|---|
committer | Christian Hergert <christian@hergert.me> | 2015-06-27 22:41:13 -0700 |
commit | cb86c222cce2436d6a213e574fbba159b6f34010 (patch) | |
tree | 3cbbb41650b58d4c51a9ae20caa67c80b3af0a2d /gobject | |
parent | 409202c1fd6552d4f655ffed3bcc649f30a7dcdb (diff) | |
download | glib-cb86c222cce2436d6a213e574fbba159b6f34010.tar.gz |
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.
Diffstat (limited to 'gobject')
-rw-r--r-- | gobject/gtypemodule.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gobject/gtypemodule.h b/gobject/gtypemodule.h index 9c63bacdf..3ef0e84a4 100644 --- a/gobject/gtypemodule.h +++ b/gobject/gtypemodule.h @@ -182,6 +182,7 @@ static gint TypeName##_private_offset; \ \ _G_DEFINE_TYPE_EXTENDED_CLASS_INIT(TypeName, type_name) \ \ +G_GNUC_UNUSED \ static inline gpointer \ type_name##_get_instance_private (TypeName *self) \ { \ |