summaryrefslogtreecommitdiff
path: root/devel/cqual/patches/patch-bd
blob: 9b0c22346a4bd0ff47561cd9402da3f0236a706f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
$NetBSD: patch-bd,v 1.1 2006/01/18 23:24:12 rillig Exp $

SunPro says: void functions cannot return a value.

--- src/confine_inf.c.orig	2002-12-30 22:43:53.000000000 +0100
+++ src/confine_inf.c	2006-01-16 14:35:36.739367700 +0100
@@ -183,7 +183,8 @@ static void confine_inf_declaration(decl
     case kind_extension_decl:
       {
 	extension_decl ed = CAST(extension_decl, d);
-	return confine_inf_declaration(ed->decl, cs); 
+	confine_inf_declaration(ed->decl, cs);
+	return;
 	/* Ignore __extension__ */
       };
     default:
@@ -642,14 +643,16 @@ static void confine_inf_unary_expression
       {
 	assert(context == rpos);
 	if (type_function(e->arg1->type))
-	  return confine_inf_expression(e->arg1, context);
+	  confine_inf_expression(e->arg1, context);
 	else
-	  return confine_inf_expression(e->arg1, apos);
+	  confine_inf_expression(e->arg1, apos);
+	return;
       }
       break;
     case kind_extension_expr:
       {
-	return confine_inf_expression(e->arg1, context);
+	confine_inf_expression(e->arg1, context);
+	return;
       }
       break;
     case kind_sizeof_expr: