aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@home.transmeta.com>2003-06-10 17:03:25 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-07 21:00:52 -0700
commit42ebe65d4fbf4e99f1c3525d06b3244310f20f62 (patch)
treeffedf10012ac1c2c4a2062bd2908163ab82d7bbe /inline.c
parentInstall the kernel source checker as "sparse" in /usr/local/bin. (diff)
downloadsparse-42ebe65d4fbf4e99f1c3525d06b3244310f20f62.tar.gz
sparse-42ebe65d4fbf4e99f1c3525d06b3244310f20f62.tar.bz2
sparse-42ebe65d4fbf4e99f1c3525d06b3244310f20f62.zip
Add "-v" flag for verbose mode.
Warn about internal "not implemented yet" kinds of things only when verbose. These warnings have nothing to do with the sources we're checking, they're only good for pointing out limitations of sparse itself.
Diffstat (limited to 'inline.c')
-rw-r--r--inline.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/inline.c b/inline.c
index 958a3f1..b0725ba 100644
--- a/inline.c
+++ b/inline.c
@@ -109,7 +109,8 @@ static struct expression * copy_expression(struct expression *expr)
}
default:
- warn(expr->pos, "trying to copy expression type %d", expr->type);
+ if (verbose)
+ warn(expr->pos, "trying to copy expression type %d", expr->type);
}
return expr;
}