[pushed] VR: mitigate -Wfinal-dtor-non-final-class clang warnings
Commit Message
Pushed as obvious.
Martin
Fixes:
gcc/value-range-storage.h:129:40: warning: class with destructor marked 'final' cannot be inherited from [-Wfinal-dtor-non-final-class]
gcc/value-range-storage.h:146:36: warning: class with destructor marked 'final' cannot be inherited from [-Wfinal-dtor-non-final-class]
gcc/ChangeLog:
* value-range-storage.h (class obstack_vrange_allocator): Mark
the class as final.
(class ggc_vrange_allocator): Likewise.
---
gcc/value-range-storage.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
@@ -119,7 +119,7 @@ class GTY (()) frange_storage_slot
frange_props m_props;
};
-class obstack_vrange_allocator : public vrange_allocator
+class obstack_vrange_allocator final: public vrange_allocator
{
public:
obstack_vrange_allocator ()
@@ -139,7 +139,7 @@ private:
obstack m_obstack;
};
-class ggc_vrange_allocator : public vrange_allocator
+class ggc_vrange_allocator final: public vrange_allocator
{
public:
ggc_vrange_allocator () { }