public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-2584] analyzer: remove unused fields
@ 2022-09-12 7:14 Martin Liska
0 siblings, 0 replies; only message in thread
From: Martin Liska @ 2022-09-12 7:14 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:ffaeb9dc58ea51ad99e82c6734e74c82e0a1cc5d
commit r13-2584-gffaeb9dc58ea51ad99e82c6734e74c82e0a1cc5d
Author: Martin Liska <mliska@suse.cz>
Date: Mon Sep 12 09:12:37 2022 +0200
analyzer: remove unused fields
Fixes:
gcc/analyzer/region-model.cc:5918:8: warning: private field 'm_record_type' is not used [-Wunused-private-field]
gcc/analyzer/region-model.cc:6305:25: warning: private field 'm_mgr' is not used [-Wunused-private-field]
gcc/analyzer/ChangeLog:
* region-model.cc (region_model::maybe_complain_about_infoleak):
Remove unused fields.
Diff:
---
gcc/analyzer/region-model.cc | 12 +++---------
1 file changed, 3 insertions(+), 9 deletions(-)
diff --git a/gcc/analyzer/region-model.cc b/gcc/analyzer/region-model.cc
index 13b8e3eaf1b..22c52872c3e 100644
--- a/gcc/analyzer/region-model.cc
+++ b/gcc/analyzer/region-model.cc
@@ -5838,7 +5838,6 @@ public:
};
record_layout (tree record_type)
- : m_record_type (record_type)
{
gcc_assert (TREE_CODE (record_type) == RECORD_TYPE);
@@ -5918,7 +5917,6 @@ private:
}
}
- tree m_record_type;
auto_vec<item> m_items;
};
@@ -5932,12 +5930,10 @@ class exposure_through_uninit_copy
public:
exposure_through_uninit_copy (const region *src_region,
const region *dest_region,
- const svalue *copied_sval,
- region_model_manager *mgr)
+ const svalue *copied_sval)
: m_src_region (src_region),
m_dest_region (dest_region),
- m_copied_sval (copied_sval),
- m_mgr (mgr)
+ m_copied_sval (copied_sval)
{
gcc_assert (m_copied_sval->get_kind () == SK_POISONED
|| m_copied_sval->get_kind () == SK_COMPOUND);
@@ -6305,7 +6301,6 @@ private:
const region *m_src_region;
const region *m_dest_region;
const svalue *m_copied_sval;
- region_model_manager *m_mgr;
};
/* Return true if any part of SVAL is uninitialized. */
@@ -6351,8 +6346,7 @@ region_model::maybe_complain_about_infoleak (const region *dst_reg,
if (contains_uninit_p (copied_sval))
ctxt->warn (new exposure_through_uninit_copy (src_reg,
dst_reg,
- copied_sval,
- m_mgr));
+ copied_sval));
}
/* class noop_region_model_context : public region_model_context. */
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-09-12 7:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-12 7:14 [gcc r13-2584] analyzer: remove unused fields Martin Liska
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).