projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
409202c
)
gtypemodule: use G_GNUC_UNUSED in G_DEFINE_DYNAMIC_TYPE_EXTENDED
author
Christian Hergert
<christian@hergert.me>
Sun, 28 Jun 2015 05:41:13 +0000
(22:41 -0700)
committer
Christian Hergert
<christian@hergert.me>
Sun, 28 Jun 2015 05:41:13 +0000
(22:41 -0700)
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.
gobject/gtypemodule.h
patch
|
blob
|
history
diff --git
a/gobject/gtypemodule.h
b/gobject/gtypemodule.h
index
9c63bac
..
3ef0e84
100644
(file)
--- 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) \
{ \