From b6ed66ec7c5ccbb18d85f26c90e280bddb49bcee Mon Sep 17 00:00:00 2001 From: Petr Machata Date: Fri, 20 Mar 2009 18:03:49 +0100 Subject: [PATCH] dwarflint: Only report "cause by this" messages when --ref is given --- src/dwarflint.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dwarflint.c b/src/dwarflint.c index 2fdf3339e..023625e90 100644 --- a/src/dwarflint.c +++ b/src/dwarflint.c @@ -954,7 +954,7 @@ where_fmt (const struct where *wh, char *ptr) void where_fmt_chain (const struct where *wh, const char *severity) { - if (wh != NULL) + if (wh != NULL && show_refs) for (struct where *it = wh->next; it != NULL; it = it->next) printf ("%s: %s: caused by this reference.\n", severity, where_fmt (it, NULL)); @@ -4259,7 +4259,7 @@ check_loc_or_range_ref (const struct read_ctx *parent_ctx, uint64_t base = cu->base; while (!read_ctx_eof (&ctx)) { - struct where where = WHERE (sec, show_refs ? wh : NULL); + struct where where = WHERE (sec, wh); where_reset_1 (&where, read_ctx_get_offset (&ctx)); #define HAVE_OVERLAP \ -- 2.47.2