diff options
| author | Mitesh Shah <mshah@teja.com> | 2005-09-21 11:53:08 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-09-22 11:37:53 -0700 |
| commit | 2660f22e954dc95c3c113815c91c87f109cb8410 (patch) | |
| tree | 48cad7724ccec4b7f59b29c67e9b95f02e004878 /inline.c | |
| parent | 02888be1a1a5ee849fb1fb1e4f8a1e29c420c98b (diff) | |
| download | sparse-dev-2660f22e954dc95c3c113815c91c87f109cb8410.tar.gz | |
[PATCH] replaced warnings with errors.
This replaceq calls to warning() with error() at places where (I think)
the gcc reports an error. Also added a global variable die_if_error
which is set if there is one or more errors. If someone wants to stop
processing further, can check for the variable.
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'inline.c')
| -rw-r--r-- | inline.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -469,7 +469,7 @@ int inline_function(struct expression *expr, struct symbol *sym) struct expression *arg; if (!fn->inline_stmt) { - warning(fn->pos, "marked inline, but without a definition"); + error(fn->pos, "marked inline, but without a definition"); return 0; } if (fn->expanding) |
