summaryrefslogtreecommitdiff
path: root/textproc/gdome2/patches/patch-aa
diff options
context:
space:
mode:
Diffstat (limited to 'textproc/gdome2/patches/patch-aa')
-rw-r--r--textproc/gdome2/patches/patch-aa20
1 files changed, 20 insertions, 0 deletions
diff --git a/textproc/gdome2/patches/patch-aa b/textproc/gdome2/patches/patch-aa
new file mode 100644
index 00000000000..fb3fda49983
--- /dev/null
+++ b/textproc/gdome2/patches/patch-aa
@@ -0,0 +1,20 @@
+$NetBSD: patch-aa,v 1.1 2005/11/17 18:22:16 rillig Exp $
+
+SunPro says: A void function cannot return a value.
+
+--- libgdome/gdomecore/gdome-xml-node.c.orig 2003-10-03 17:53:33.000000000 +0200
++++ libgdome/gdomecore/gdome-xml-node.c 2005-11-17 19:14:02.383302400 +0100
+@@ -252,9 +252,11 @@ gdome_xml_n_unref (GdomeNode *self, Gdom
+ switch (type) {
+ case XML_DOCUMENT_TYPE_NODE:
+ case XML_DTD_NODE:
+- return gdome_xml_dt_unref (self, exc);
++ (void)gdome_xml_dt_unref (self, exc);
++ return;
+ case XML_DOCUMENT_NODE:
+- return gdome_xml_doc_unref (self, exc);
++ (void)gdome_xml_doc_unref (self, exc);
++ return;
+ default:
+ if (priv->refcnt > 0)
+ priv->refcnt--;