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:
Dimitry Andric 2016-08-29 18:51:49 +00:00
parent afd3e268d2
commit 895897884f

View File

@ -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
{