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));
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 \