summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rw-r--r--util/romcc/romcc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/util/romcc/romcc.c b/util/romcc/romcc.c
index 15e950cc67..d371506ec1 100644
--- a/util/romcc/romcc.c
+++ b/util/romcc/romcc.c
@@ -13465,7 +13465,8 @@ static struct triple *do_decl(struct compile_state *state,
internal_error(state, 0, "Undefined storage class");
}
if ((type->type & TYPE_MASK) == TYPE_FUNCTION) {
- error(state, 0, "Function prototypes not supported");
+ // ignore function prototypes
+ return def;
}
if (ident &&
((type->type & TYPE_MASK) == TYPE_ARRAY) &&