]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
analyzer: remove unused variables
authorMartin Liska <mliska@suse.cz>
Wed, 5 Oct 2022 11:33:24 +0000 (13:33 +0200)
committerMartin Liska <mliska@suse.cz>
Wed, 5 Oct 2022 11:33:24 +0000 (13:33 +0200)
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.

gcc/analyzer/call-summary.cc
gcc/analyzer/call-summary.h
gcc/analyzer/engine.cc
gcc/analyzer/exploded-graph.h

index 9d8716da96eeb409e31b83649b337b6ca750b48e..a8e881472ea3bcdb618243d6c75efe881e031624 100644 (file)
@@ -171,7 +171,6 @@ call_summary_replay::call_summary_replay (const call_details &cd,
                                          call_summary *summary,
                                          const extrinsic_state &ext_state)
 : m_cd (cd),
-  m_called_fn (called_fn),
   m_summary (summary),
   m_ext_state (ext_state)
 {
index f4c5ff0b3aaec0dc71798ce154794456929c1ac8..07cd3f53ce60beeb603a365c9d2c4291e9f23506 100644 (file)
@@ -100,7 +100,6 @@ private:
   const region *convert_region_from_summary_1 (const region *);
 
   const call_details &m_cd;
-  function *m_called_fn;
   call_summary *m_summary;
   const extrinsic_state &m_ext_state;
 
index b4deee50f1f50fc663600153e64290cd5a9add2a..735b5a3c0614612b31789abd34dc2cdd8b46f56a 100644 (file)
@@ -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,
index ea4a890b9ce8a6f195d862f8ae16b03d258a5ec0..11e46cab1606fc9d24f03b6943e074896fb3495a 100644 (file)
@@ -271,7 +271,6 @@ class exploded_node : public dnode<eg_traits>
                                       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,
@@ -280,7 +279,6 @@ class exploded_node : public dnode<eg_traits>
                            const supernode *snode,
                            const gcall *call_stmt,
                            program_state *state,
-                           uncertainty_t *uncertainty,
                            path_context *path_ctxt,
                            function *called_fn,
                            call_summary *summary,