7da5ddc215
with SunPro.
36 lines
1.1 KiB
Text
36 lines
1.1 KiB
Text
$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:
|