blob: fb3fda4998316dcdea876c638eae004a9ef7cbf6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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--;
|