[glib] gtype – Mark _get_instance_private() function as G_GNUC_UNUSED
- From: Ryan Lortie <desrt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] gtype – Mark _get_instance_private() function as G_GNUC_UNUSED
- Date: Sat, 8 Mar 2014 14:02:07 +0000 (UTC)
commit 012011538f4513569f92e322c4377efa2cb64378
Author: Sebastian Dröge <sebastian centricular com>
Date: Sun Feb 9 23:08:21 2014 +0100
gtype – Mark _get_instance_private() function as G_GNUC_UNUSED
clang likes to complain about it being unused.
https://bugzilla.gnome.org/show_bug.cgi?id=723899
gobject/gtype.h | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gobject/gtype.h b/gobject/gtype.h
index a1c2d90..330620b 100644
--- a/gobject/gtype.h
+++ b/gobject/gtype.h
@@ -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) \
{ \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]