aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--decl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/decl.c b/decl.c
index cb2e2f4..0e9c776 100644
--- a/decl.c
+++ b/decl.c
@@ -817,7 +817,7 @@ decl(struct scope *s, struct function *f)
t->func.isnoreturn |= fs & FUNCNORETURN;
if (f && sc && sc != SCEXTERN) /* 6.7.1p7 */
error(&tok.loc, "function '%s' with block scope may only have storage class 'extern'", name);
- if (!t->func.isprototype && t->func.paraminfo) {
+ if (!t->func.isprototype && t->func.params) {
if (!allowfunc)
error(&tok.loc, "function declaration not allowed");
/* collect type information for parameters before we check compatibility */