gtype – Mark _get_instance_private() function as G_GNUC_UNUSED
authorSebastian Dröge <sebastian@centricular.com>
Sun, 9 Feb 2014 22:08:21 +0000 (23:08 +0100)
committerRyan Lortie <desrt@desrt.ca>
Sat, 8 Mar 2014 14:01:52 +0000 (09:01 -0500)
clang likes to complain about it being unused.

https://bugzilla.gnome.org/show_bug.cgi?id=723899

gobject/gtype.h

index a1c2d90..330620b 100644 (file)
@@ -1672,6 +1672,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) \
 { \