diff options
| author | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2018-12-15 06:40:37 +0100 |
|---|---|---|
| committer | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2018-12-17 23:28:56 +0100 |
| commit | 87e9f4270a611738322712f572f12a9e395bfc73 (patch) | |
| tree | e865e2c0a7c945737b5f78d78373a57b342c41a8 /validation/expand | |
| parent | df93af7da3cb6e4598c7fc471d7d2392cc8474de (diff) | |
| download | sparse-dev-87e9f4270a611738322712f572f12a9e395bfc73.tar.gz | |
show-parse: don't display null ident in show_typename()
Often show_typename() is used to display a type and the associated
identifier is irrelevant but is displayed nevertheless.
However, when the identifier is itself not present, it is still
displayed as '<noident>', which is just noise and can be confusing.
Fix this by displaying nothing for null identifiers in show_typename().
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Diffstat (limited to 'validation/expand')
| -rw-r--r-- | validation/expand/builtin-expect.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/validation/expand/builtin-expect.c b/validation/expand/builtin-expect.c index 77f714ef..1207c132 100644 --- a/validation/expand/builtin-expect.c +++ b/validation/expand/builtin-expect.c @@ -86,10 +86,10 @@ fptr: * * check-error-start expand/builtin-expect.c:33:33: warning: incorrect type in argument 1 (different base types) -expand/builtin-expect.c:33:33: expected long [signed] <noident> +expand/builtin-expect.c:33:33: expected long [signed] expand/builtin-expect.c:33:33: got void *a expand/builtin-expect.c:33:36: warning: incorrect type in argument 2 (different base types) -expand/builtin-expect.c:33:36: expected long [signed] <noident> +expand/builtin-expect.c:33:36: expected long [signed] expand/builtin-expect.c:33:36: got void *a expand/builtin-expect.c:33:32: warning: incorrect type in return expression (different base types) expand/builtin-expect.c:33:32: expected void * |
