diff options
author | welinder@darter.rentec.com <welinder@darter.rentec.com> | 2004-09-13 11:48:37 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-07 21:03:11 -0700 |
commit | f336cf3c5e0b4eeeeb02cdd92828ecca75eea1d7 (patch) | |
tree | 51883d13d28f563a5f17a0df9d06032b0b0e1a29 /show-parse.c | |
parent | symbol.h, symbol.c: (diff) | |
download | sparse-f336cf3c5e0b4eeeeb02cdd92828ecca75eea1d7.tar.gz sparse-f336cf3c5e0b4eeeeb02cdd92828ecca75eea1d7.tar.bz2 sparse-f336cf3c5e0b4eeeeb02cdd92828ecca75eea1d7.zip |
Many files:
warn->warning
error->error_die
new error
lib.h:
warn->warning
error->error_die
new error
Add gcc format checking to warning/error/...
Diffstat (limited to 'show-parse.c')
-rw-r--r-- | show-parse.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/show-parse.c b/show-parse.c index 1d423ad..bca9e47 100644 --- a/show-parse.c +++ b/show-parse.c @@ -586,7 +586,7 @@ static int show_call_expression(struct expression *expr) int framesize; if (!expr->ctype) { - warn(expr->pos, "\tcall with no type!"); + warning(expr->pos, "\tcall with no type!"); return 0; } @@ -994,7 +994,7 @@ int show_expression(struct expression *expr) case EXPR_DEREF: case EXPR_SIZEOF: case EXPR_ALIGNOF: - warn(expr->pos, "invalid expression after evaluation"); + warning(expr->pos, "invalid expression after evaluation"); return 0; case EXPR_CAST: return show_cast_expr(expr); @@ -1021,16 +1021,16 @@ int show_expression(struct expression *expr) // None of these should exist as direct expressions: they are only // valid as sub-expressions of initializers. case EXPR_POS: - warn(expr->pos, "unable to show plain initializer position expression"); + warning(expr->pos, "unable to show plain initializer position expression"); return 0; case EXPR_IDENTIFIER: - warn(expr->pos, "unable to show identifier expression"); + warning(expr->pos, "unable to show identifier expression"); return 0; case EXPR_INDEX: - warn(expr->pos, "unable to show index expression"); + warning(expr->pos, "unable to show index expression"); return 0; case EXPR_TYPE: - warn(expr->pos, "unable to show type expression"); + warning(expr->pos, "unable to show type expression"); return 0; } return 0; |