aboutsummaryrefslogtreecommitdiffhomepage
path: root/c.c
diff options
context:
space:
mode:
Diffstat (limited to 'c.c')
-rw-r--r--c.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/c.c b/c.c
index 7eae3e6..7135108 100644
--- a/c.c
+++ b/c.c
@@ -797,7 +797,7 @@ Unary:
struct decl decl = pdecl(&st, cm);
expect(cm, ')', NULL);
assert(decl.ty.t);
- if ((isagg(decl.ty) || decl.ty.t == TYARRAY) && peek(cm, NULL) == '{') {
+ if (peek(cm, NULL) == '{') {
if (ccopt.cstd < STDC99)
warn(&tk.span, "compound literals are a c99 feature");
ex = initializer(cm, &decl.ty, (decl.scls & SCSTATIC) ? EVSTATICINI : EVFOLD,