From 20d16d61dd22a9bfb66d5c4a383d193037e8f16d Mon Sep 17 00:00:00 2001 From: David Malcolm Date: Mon, 28 Sep 2020 16:53:53 -0400 Subject: [PATCH] analyzer: remove unused field I added this field (and the struct itself) in the rewrite of region and value-handling (808f4dfeb3a95f50f15e71148e5c1067f90a126d), but the field was never used. Found by cppcheck. gcc/analyzer/ChangeLog: * diagnostic-manager.cc (null_assignment_sm_context::m_visitor): Remove unused field. --- gcc/analyzer/diagnostic-manager.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/gcc/analyzer/diagnostic-manager.cc b/gcc/analyzer/diagnostic-manager.cc index 13dd3da606f..cb95a95ff0b 100644 --- a/gcc/analyzer/diagnostic-manager.cc +++ b/gcc/analyzer/diagnostic-manager.cc @@ -931,7 +931,6 @@ struct null_assignment_sm_context : public sm_context const program_state *m_new_state; const gimple *m_stmt; const program_point *m_point; - state_change_visitor *m_visitor; checker_path *m_emission_path; const extrinsic_state &m_ext_state; }; -- 2.30.2