diff options
| author | Linus Torvalds <torvalds@home.transmeta.com> | 2003-04-12 12:13:07 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-07 21:00:31 -0700 |
| commit | 89afb737679fa312e01005555ebde306759eba68 (patch) | |
| tree | 7ecf80b932b64d29a43fb4b808131a0fd3aebbad | |
| parent | e682e79e682dd00c1e2ae36e78d8bf62ceed7ebc (diff) | |
| download | sparse-dev-89afb737679fa312e01005555ebde306759eba68.tar.gz | |
Print out the symbol name when we complain about re-declaring stuff with
the wrong types..
| -rw-r--r-- | evaluate.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; } |
