public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-420] clang warning: warning: private field 'm_gc' is not used [-Wunused-private-field]
@ 2023-05-03  9:18 Martin Liska
  0 siblings, 0 replies; only message in thread
From: Martin Liska @ 2023-05-03  9:18 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:348788b19f55ce3a614b5c1ca6d2c46e0605e6b2

commit r14-420-g348788b19f55ce3a614b5c1ca6d2c46e0605e6b2
Author: Martin Liska <mliska@suse.cz>
Date:   Wed May 3 11:16:30 2023 +0200

    clang warning: warning: private field 'm_gc' is not used [-Wunused-private-field]
    
            PR tree-optimization/109693
    
    gcc/ChangeLog:
    
            * value-range-storage.cc (vrange_allocator::vrange_allocator):
            Remove unused field.
            * value-range-storage.h: Likewise.

Diff:
---
 gcc/value-range-storage.cc | 1 -
 gcc/value-range-storage.h  | 1 -
 2 files changed, 2 deletions(-)

diff --git a/gcc/value-range-storage.cc b/gcc/value-range-storage.cc
index 7d2de5e8384..14bec500dbc 100644
--- a/gcc/value-range-storage.cc
+++ b/gcc/value-range-storage.cc
@@ -80,7 +80,6 @@ public:
 };
 
 vrange_allocator::vrange_allocator (bool gc)
-  : m_gc (gc)
 {
   if (gc)
     m_alloc = new vrange_ggc_alloc;
diff --git a/gcc/value-range-storage.h b/gcc/value-range-storage.h
index 4ec0da73059..a90b64b2bf0 100644
--- a/gcc/value-range-storage.h
+++ b/gcc/value-range-storage.h
@@ -38,7 +38,6 @@ public:
 private:
   DISABLE_COPY_AND_ASSIGN (vrange_allocator);
   class vrange_internal_alloc *m_alloc;
-  bool m_gc;
 };
 
 // Efficient memory storage for a vrange.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-05-03  9:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-03  9:18 [gcc r14-420] clang warning: warning: private field 'm_gc' is not used [-Wunused-private-field] 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).