aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
authorLinus Torvalds <torvalds@home.transmeta.com>2003-04-12 12:13:07 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-07 21:00:31 -0700
commit89afb737679fa312e01005555ebde306759eba68 (patch)
tree7ecf80b932b64d29a43fb4b808131a0fd3aebbad
parente682e79e682dd00c1e2ae36e78d8bf62ceed7ebc (diff)
downloadsparse-dev-89afb737679fa312e01005555ebde306759eba68.tar.gz
Print out the symbol name when we complain about re-declaring stuff with
the wrong types..
-rw-r--r--evaluate.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/evaluate.c b/evaluate.c
index 270104d3..5a60fee7 100644
--- a/evaluate.c
+++ b/evaluate.c
@@ -1413,7 +1413,8 @@ static void check_duplicates(struct symbol *sym)
evaluate_symbol(next);
typediff = type_difference(sym, next, 0, 0);
if (typediff) {
- warn(sym->pos, "symbol redeclared with different type (originally declared at %s:%d)",
+ warn(sym->pos, "symbol '%s' redeclared with different type (originally declared at %s:%d)",
+ show_ident(sym->ident),
input_streams[next->pos.stream].name, next->pos.line);
return;
}