summaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authorgusi <gusi@df743ca5-7f9a-e211-a948-0013205c9059>2014-03-08 16:28:47 +0800
committergusi <gusi@df743ca5-7f9a-e211-a948-0013205c9059>2014-03-08 16:28:47 +0800
commitf444e76400a745964d1cb19c48bdbafbb5786416 (patch)
tree156e0fee3ce585d0319298fced2a859e93ec7094 /devel
parent958b728148f907c2f31ae0169866f3a5e47f6670 (diff)
downloadmarcuscom-ports-f444e76400a745964d1cb19c48bdbafbb5786416.tar
marcuscom-ports-f444e76400a745964d1cb19c48bdbafbb5786416.tar.gz
marcuscom-ports-f444e76400a745964d1cb19c48bdbafbb5786416.tar.bz2
marcuscom-ports-f444e76400a745964d1cb19c48bdbafbb5786416.tar.lz
marcuscom-ports-f444e76400a745964d1cb19c48bdbafbb5786416.tar.xz
marcuscom-ports-f444e76400a745964d1cb19c48bdbafbb5786416.tar.zst
marcuscom-ports-f444e76400a745964d1cb19c48bdbafbb5786416.zip
Add a patch to glib that would silence clang when compiling code with some G_ macros.
The 3.4 started to complain with G_DEFINE_TYPE_WITH_CODE in x11-fm/nemo. The compiler complains about some arguments to those macros saying that those are unused. It would appear that not only those glib macros are affected. The following link contains more info: https://bugzilla.gnome.org/show_bug.cgi?id=723899 Discussed with: desrt(Ryan Lortie) on #freebsd-gnome git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@19014 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'devel')
-rw-r--r--devel/glib20/files/patch-gobject_gtype.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/devel/glib20/files/patch-gobject_gtype.h b/devel/glib20/files/patch-gobject_gtype.h
new file mode 100644
index 000000000..f549fb2d2
--- /dev/null
+++ b/devel/glib20/files/patch-gobject_gtype.h
@@ -0,0 +1,10 @@
+--- gobject/gtype.h.orig 2014-03-08 01:02:56.790527382 +0000
++++ gobject/gtype.h 2014-03-08 01:03:33.934524502 +0000
+@@ -1674,6 +1674,7 @@
+ \
+ _G_DEFINE_TYPE_EXTENDED_CLASS_INIT(TypeName, type_name) \
+ \
++G_GNUC_UNUSED \
+ static inline gpointer \
+ type_name##_get_instance_private (TypeName *self) \
+ { \