Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Aug 2016 18:51:49 +0000 (UTC)
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r305013 - head/cddl/usr.sbin/zfsd
Message-ID:  <201608291851.u7TIpnUu060051@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dim
Date: Mon Aug 29 18:51:49 2016
New Revision: 305013
URL: https://svnweb.freebsd.org/changeset/base/305013

Log:
  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

Modified:
  head/cddl/usr.sbin/zfsd/vdev.h

Modified: head/cddl/usr.sbin/zfsd/vdev.h
==============================================================================
--- head/cddl/usr.sbin/zfsd/vdev.h	Mon Aug 29 18:47:51 2016	(r305012)
+++ head/cddl/usr.sbin/zfsd/vdev.h	Mon Aug 29 18:51:49 2016	(r305013)
@@ -108,6 +108,12 @@ public:
 	 * \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 @@ private:
 extern Vdev NonexistentVdev;
 
 //- Vdev Inline Public Methods ------------------------------------------------
+inline Vdev::~Vdev()
+{
+}
+
 inline DevdCtl::Guid
 Vdev::PoolGUID() const
 {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201608291851.u7TIpnUu060051>