https://gcc.gnu.org/g:69d1fb86194c386f17e65cd52476ecf06481677b

commit r16-2308-g69d1fb86194c386f17e65cd52476ecf06481677b
Author: David Malcolm <dmalc...@redhat.com>
Date:   Wed Jul 16 18:41:26 2025 -0400

    diagnostics: remove redundant field
    
    I stopped using state_diagram::m_show_tags in r16-2211-ga5d9debedd2f46
    but forgot to remove the field.  Do so now.
    
    Spotted by Filip Kastl via clang's -Wunused-private-field.
    
    gcc/ChangeLog:
            * diagnostic-state-to-dot.cc (state_diagram::m_show_tags): Drop
            unused field.
    
    Signed-off-by: David Malcolm <dmalc...@redhat.com>

Diff:
---
 gcc/diagnostic-state-to-dot.cc | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/gcc/diagnostic-state-to-dot.cc b/gcc/diagnostic-state-to-dot.cc
index 8195c1148fe0..90ceaee756e3 100644
--- a/gcc/diagnostic-state-to-dot.cc
+++ b/gcc/diagnostic-state-to-dot.cc
@@ -78,9 +78,7 @@ class state_diagram : public dot::graph
 public:
   state_diagram (const diagnostics::digraphs::digraph &input_state_graph,
                 const logical_location_manager &logical_loc_mgr)
-  : m_logical_loc_mgr (logical_loc_mgr),
-    // m_next_id (0),
-    m_show_tags (false)
+  : m_logical_loc_mgr (logical_loc_mgr)
   {
     // "node [shape=plaintext]\n"
     {
@@ -541,8 +539,6 @@ private:
 
   std::map<diagnostics::digraphs::node *, dot::node_id> m_src_node_to_port_id;
   std::map<diagnostics::digraphs::node *, dot::node_id> m_dst_node_to_port_id;
-
-  bool m_show_tags;
 };
 
 std::unique_ptr<dot::graph>

Reply via email to