Add an empty virtual destructor to zfsd's Vdev class. This is needed
because the class has virtual functions, and the compiler-generated default destructor is non-virtual. Reviewed by: asomers MFC after: 3 days
This commit is contained in:
parent
afd3e268d2
commit
895897884f
@ -108,6 +108,12 @@ class Vdev
|
||||
* \brief No-op copy constructor for nonexistent vdevs.
|
||||
*/
|
||||
Vdev();
|
||||
|
||||
/**
|
||||
* \brief No-op virtual destructor, since this class has virtual
|
||||
* functions.
|
||||
*/
|
||||
virtual ~Vdev();
|
||||
bool DoesNotExist() const;
|
||||
|
||||
/**
|
||||
@ -145,6 +151,10 @@ class Vdev
|
||||
extern Vdev NonexistentVdev;
|
||||
|
||||
//- Vdev Inline Public Methods ------------------------------------------------
|
||||
inline Vdev::~Vdev()
|
||||
{
|
||||
}
|
||||
|
||||
inline DevdCtl::Guid
|
||||
Vdev::PoolGUID() const
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user