aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--c/c.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/c/c.c b/c/c.c
index 49b17b2..a16bf80 100644
--- a/c/c.c
+++ b/c/c.c
@@ -2429,7 +2429,7 @@ decltypes(struct comp *cm, struct decllist *list, const char **name, struct span
} else if (ex.u > (1ull << (8*sizeof n)) - 1) {
error(&ex.span, "array too long (%ul)", ex.u);
} else if (ex.u == 0) {
- error(&ex.span, "array cannot have zero length");
+ warn(&ex.span, "array cannot have zero length");
} else {
n = ex.u;
}