aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/flex-array-nested.c
AgeCommit message (Collapse)AuthorFilesLines
2020-10-14flex-array: fix typo in warning messageLuc Van Oostenryck1-2/+2
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
2020-10-09flex-array: fix location for nesting of flexible membersLuc Van Oostenryck1-2/+2
The warning about the nesting of flexible array members is given with the location of the outer struct or union but that is not very interesting. What is needed is the location of the member causing this nesting. So, fix the warning message to use the member's location. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
2020-10-01flex-array: warn on flexible array in nested aggregate typesLuc Van Oostenryck1-1/+0
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>
2020-10-01flex-array: add testcasesLuc Van Oostenryck1-0/+30
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>