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

https://gcc.gnu.org/g:abdff441a07f55d16e3d0e5ced3123c83d210a0a

commit r12-5176-gabdff441a07f55d16e3d0e5ced3123c83d210a0a
Author: David Malcolm <dmalcolm@redhat.com>
Date:   Wed Nov 10 17:37:11 2021 -0500

    diagnostic: fix unused variable 'def_tabstop' [PR103129]
    
    gcc/ChangeLog:
            PR other/103129
            * diagnostic-show-locus.c (def_policy): Use def_tabstop.
    
    Signed-off-by: David Malcolm <dmalcolm@redhat.com>

Diff:
---
 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


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

only message in thread, other threads:[~2021-11-11 17:13 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:13 [gcc r12-5176] 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).