From: Petr Machata Date: Fri, 20 Mar 2009 17:03:49 +0000 (+0100) Subject: dwarflint: Only report "cause by this" messages when --ref is given X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b6ed66ec7c5ccbb18d85f26c90e280bddb49bcee;p=thirdparty%2Felfutils.git dwarflint: Only report "cause by this" messages when --ref is given --- 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 \