diff options
author | Martin Liska <mliska@suse.cz> | 2022-10-05 13:33:24 +0200 |
---|---|---|
committer | Martin Liska <mliska@suse.cz> | 2022-10-05 13:33:24 +0200 |
commit | bcc27369910b818047bca466fbcef6a3034dfc7f (patch) | |
tree | c3c4e45dc8550e86f1fb52f2a5a13022d1904517 /gcc/analyzer/engine.cc | |
parent | 233c966dba5012938a1f84e14c26b52d507b2aae (diff) | |
download | gcc-bcc27369910b818047bca466fbcef6a3034dfc7f.zip gcc-bcc27369910b818047bca466fbcef6a3034dfc7f.tar.gz gcc-bcc27369910b818047bca466fbcef6a3034dfc7f.tar.bz2 |
analyzer: remove unused variables
Fixes:
gcc/analyzer/call-summary.h:103:13: warning: private field 'm_called_fn' is not used [-Wunused-private-field]
gcc/analyzer/engine.cc:1631:24: warning: unused parameter 'uncertainty' [-Wunused-parameter]
gcc/analyzer/ChangeLog:
* call-summary.cc (call_summary_replay::call_summary_replay):
Remove unused variable and arguments.
* call-summary.h: Likewise.
* engine.cc (exploded_node::on_stmt): Likewise.
(exploded_node::replay_call_summaries): Likewise.
(exploded_node::replay_call_summary): Likewise.
* exploded-graph.h (class exploded_node): Likewise.
Diffstat (limited to 'gcc/analyzer/engine.cc')
-rw-r--r-- | gcc/analyzer/engine.cc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/gcc/analyzer/engine.cc b/gcc/analyzer/engine.cc index b4deee5..735b5a3 100644 --- a/gcc/analyzer/engine.cc +++ b/gcc/analyzer/engine.cc @@ -1439,7 +1439,6 @@ exploded_node::on_stmt (exploded_graph &eg, snode, as_a <const gcall *> (stmt), state, - uncertainty, path_ctxt, called_fn, called_fn_data, @@ -1598,7 +1597,6 @@ exploded_node::replay_call_summaries (exploded_graph &eg, const supernode *snode, const gcall *call_stmt, program_state *state, - uncertainty_t *uncertainty, path_context *path_ctxt, function *called_fn, per_function_data *called_fn_data, @@ -1612,7 +1610,7 @@ exploded_node::replay_call_summaries (exploded_graph &eg, /* Each summary will call bifurcate on the PATH_CTXT. */ for (auto summary : called_fn_data->m_summaries) - replay_call_summary (eg, snode, call_stmt, state, uncertainty, + replay_call_summary (eg, snode, call_stmt, state, path_ctxt, called_fn, summary, ctxt); path_ctxt->terminate_path (); @@ -1628,7 +1626,6 @@ exploded_node::replay_call_summary (exploded_graph &eg, const supernode *snode, const gcall *call_stmt, program_state *old_state, - uncertainty_t *uncertainty, path_context *path_ctxt, function *called_fn, call_summary *summary, |