aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/empty-expr.c
AgeCommit message (Collapse)AuthorFilesLines
2017-12-28fix crash on bad expression in linearize_switch()Luc Van Oostenryck1-1/+0
If the expression for the condition is dereferenced for its type even if it is NULL. Fix this by returning early if the expression linearize to VOID. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
2017-12-28warn on empty parenthesized expressionsLuc Van Oostenryck1-0/+27
Empty sub-expressions are normally caught as syntax error in most expressions but this is not the case for parenthesized expressions. Fix this by adding a check at the end of parens_expressions() and warning if needed. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>