diff options
| author | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2020-09-24 21:56:23 +0200 |
|---|---|---|
| committer | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2020-10-01 00:46:44 +0200 |
| commit | 02ed28909f3b79e0ad1ca57b9699f39e1bb7cdcf (patch) | |
| tree | ce2af5f765a2960b40aa3a8f1e555ceec04d5611 /validation | |
| parent | 8b187dd493fb934f38061d9ee265a888a6b4b776 (diff) | |
| download | sparse-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.c | 1 |
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 |
