aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/eval/undecl-no-indent.c
AgeCommit message (Collapse)AuthorFilesLines
2020-07-04avoid multiple warnings when inlining undeclared callsLuc Van Oostenryck1-0/+19
When inlining multiple times a function which contains an undeclared function call, multiple error messages are issued. More annoyingly, only the first one is meaningful, the other ones doesn't even show the incriminated identifier: error: undefined identifier '...' error: not a function <noident> Part of the problem is that the first message is displayed with expression_error() which also sets the expression to &bad_ctype. This change the way how the expression is handled when re-evaluated. Fix this by avoiding the evaluation of function calls that already evaluate to bad_ctype: it's known that an error message have already been issued for them and that nothing good can done with them. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>