aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation
diff options
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2020-09-24 21:56:23 +0200
committerLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2020-10-01 00:46:44 +0200
commit02ed28909f3b79e0ad1ca57b9699f39e1bb7cdcf (patch)
treece2af5f765a2960b40aa3a8f1e555ceec04d5611 /validation
parent8b187dd493fb934f38061d9ee265a888a6b4b776 (diff)
downloadsparse-dev-02ed28909f3b79e0ad1ca57b9699f39e1bb7cdcf.tar.gz
flex-array: warn on flexible array in nested aggregate types
A structure or a union containing another aggregate type containing, possibly recursively, a flexible array is quite error prone and make not much sense. So, add an option -Wflexible-array-nested to warn on such usage. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Diffstat (limited to 'validation')
-rw-r--r--validation/flex-array-nested.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/validation/flex-array-nested.c b/validation/flex-array-nested.c
index 3503c329..63767683 100644
--- a/validation/flex-array-nested.c
+++ b/validation/flex-array-nested.c
@@ -21,7 +21,6 @@ static int foo(struct s *s, union u *u)
/*
* check-name: flex-array-nested
* check-command: sparse -Wflexible-array-nested $file
- * check-known-to-fail
*
* check-error-start
flex-array-nested.c:6:8: warning: nested flexible arrays