aboutsummaryrefslogtreecommitdiff
path: root/tccgen.c
diff options
context:
space:
mode:
Diffstat (limited to 'tccgen.c')
-rw-r--r--tccgen.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/tccgen.c b/tccgen.c
index 48efdc3..fd7ff25 100644
--- a/tccgen.c
+++ b/tccgen.c
@@ -5213,9 +5213,7 @@ static void decl_initializer_alloc(CType *type, AttributeDef *ad, int r,
sec = NULL;
#ifdef CONFIG_TCC_BCHECK
if (tcc_state->do_bounds_check && (type->t & VT_ARRAY)) {
- if (type->t & VT_VLA)
- warning("Array bound check don't work for VLA");
- else
+ if (!(type->t & VT_VLA))
loc--;
}
#endif