summaryrefslogtreecommitdiffstats
path: root/dwarflint/where.c
diff options
context:
space:
mode:
Diffstat (limited to 'dwarflint/where.c')
-rw-r--r--dwarflint/where.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/dwarflint/where.c b/dwarflint/where.c
index 3e284565..ca9f0cd5 100644
--- a/dwarflint/where.c
+++ b/dwarflint/where.c
@@ -24,7 +24,6 @@
<http://www.openinventionnetwork.com>. */
#include "where.h"
-#include "options.h"
#include <inttypes.h>
#include <assert.h>
@@ -32,6 +31,8 @@
#include <stdio.h>
#include <string.h>
+extern bool show_refs (void);
+
const char *
where_fmt (const struct where *wh, char *ptr)
{
@@ -189,7 +190,7 @@ where_fmt (const struct where *wh, char *ptr)
void
where_fmt_chain (const struct where *wh, const char *severity)
{
- if (wh != NULL && show_refs)
+ if (wh != NULL && show_refs ())
for (struct where const *it = wh->next; it != NULL; it = it->next)
printf ("%s: %s: caused by this reference.\n",
severity, where_fmt (it, NULL));