aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/bool-array.c
AgeCommit message (Collapse)AuthorFilesLines
2016-02-04Fix size calculation of unsized bool arrayLuc Van Oostenryck1-0/+47
This stops sparse from issuing the error message "error: cannot size expression" for code like: static _Bool boolarray[] = { 0, 1, }; static int n = sizeof(boolarray); The fix consists of using array_element_offset() for calculating the size of unsized arrays, like it is done elsewhere for sized ones. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com> Signed-off-by: Christopher Li <sparse@chrisli.org>