From: David Malcolm Date: Mon, 28 Sep 2020 20:53:53 +0000 (-0400) Subject: analyzer: remove unused field X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=20d16d61dd22a9bfb66d5c4a383d193037e8f16d;p=gcc.git 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. --- 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; };