aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/c.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/c.c')
-rw-r--r--src/c.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/c.c b/src/c.c
index 0feb634..902bff4 100644
--- a/src/c.c
+++ b/src/c.c
@@ -2892,6 +2892,7 @@ pdecl(DeclState *st, CComp *cm) {
return decl;
}
decl = declarator(st, cm, decl.span);
+ while (attrspec(cm, &st->attr)) ;
if (decl.ty.t != TYFUNC && st->fninline)
error(&decl.span, "`inline' used on non-function declaration");
if (decl.ty.t != TYFUNC && st->fnnoreturn)