aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/inline.c
diff options
authorMitesh Shah <mshah@teja.com>2005-09-21 11:53:08 -0700
committerLinus Torvalds <torvalds@g5.osdl.org>2005-09-22 11:37:53 -0700
commit2660f22e954dc95c3c113815c91c87f109cb8410 (patch)
tree48cad7724ccec4b7f59b29c67e9b95f02e004878 /inline.c
parent02888be1a1a5ee849fb1fb1e4f8a1e29c420c98b (diff)
downloadsparse-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/inline.c b/inline.c
index 693c9514..7aff9bc7 100644
--- a/inline.c
+++ b/inline.c
@@ -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)