public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [committed] diagnostic: fix unused variable 'def_tabstop' [PR103129]
@ 2021-11-11 17:15 David Malcolm
  0 siblings, 0 replies; only message in thread
From: David Malcolm @ 2021-11-11 17:15 UTC (permalink / raw)
  To: gcc-patches

Successfully bootstrapped & regrtested on x86_64-pc-linux-gnu.
Pushed to trunk as r12-5176-gabdff441a07f55d16e3d0e5ced3123c83d210a0a.

gcc/ChangeLog:
	PR other/103129
	* diagnostic-show-locus.c (def_policy): Use def_tabstop.

Signed-off-by: David Malcolm <dmalcolm@redhat.com>
---
 gcc/diagnostic-show-locus.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/diagnostic-show-locus.c b/gcc/diagnostic-show-locus.c
index d796085222a..67be213c5a2 100644
--- a/gcc/diagnostic-show-locus.c
+++ b/gcc/diagnostic-show-locus.c
@@ -693,7 +693,7 @@ static const int def_tabstop = 8;
 
 static cpp_char_column_policy def_policy ()
 {
-  return cpp_char_column_policy (8, cpp_wcwidth);
+  return cpp_char_column_policy (def_tabstop, cpp_wcwidth);
 }
 
 /* Create some expanded locations for testing layout_range.  The filename
-- 
2.26.3


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-11-11 17:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-11 17:15 [committed] diagnostic: fix unused variable 'def_tabstop' [PR103129] David Malcolm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).