diff options
| author | Al Viro <viro@ftp.linux.org.uk> | 2008-02-22 23:05:25 +0000 |
|---|---|---|
| committer | Josh Triplett <josh@freedesktop.org> | 2008-04-03 13:43:07 -0700 |
| commit | 64b65ec931369939014995e65b682effa7c0a654 (patch) | |
| tree | b23b7164f4a9caaf32533a20a670b799b133e7ef /validation | |
| parent | 8ad1087c5947c49dafb7566df32c86b1eb51ccc4 (diff) | |
| download | sparse-dev-64b65ec931369939014995e65b682effa7c0a654.tar.gz | |
fix show_typename()
* postfix stuff had been applied in wrong order (e.g. int a[2][3] generated
int [addressable][toplevel] a[3][2])
* after fixing that, we've no need for recursion anymore, a bunch of arguments
go away and turn into local variables and we get an easy way to get rid of
bogus space in the show_typename() result.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
[Josh: fix test suite to match]
Signed-off-by: Josh Triplett <josh@kernel.org>
Diffstat (limited to 'validation')
| -rw-r--r-- | validation/compare-null-to-int.c | 2 | ||||
| -rw-r--r-- | validation/cond_expr.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/validation/compare-null-to-int.c b/validation/compare-null-to-int.c index 83885490..08e556b3 100644 --- a/validation/compare-null-to-int.c +++ b/validation/compare-null-to-int.c @@ -6,6 +6,6 @@ static unsigned int comparison = (void *)0 == 1; * check-error-start compare-null-to-int.c:1:44: error: incompatible types for operation (==) compare-null-to-int.c:1:44: left side has type void * -compare-null-to-int.c:1:44: right side has type int +compare-null-to-int.c:1:44: right side has type int * check-error-end */ diff --git a/validation/cond_expr.c b/validation/cond_expr.c index a37cb8cf..4a64f45e 100644 --- a/validation/cond_expr.c +++ b/validation/cond_expr.c @@ -14,6 +14,6 @@ int a(void) * * check-error-start cond_expr.c:10:9: error: incompatible types for operation (~) -cond_expr.c:10:9: argument has type double +cond_expr.c:10:9: argument has type double * check-error-end */ |
