diff --git a/src/inspector/worker_inspector.h b/src/inspector/worker_inspector.h index e3c96cf62f01b0..c1d3b8a5711740 100644 --- a/src/inspector/worker_inspector.h +++ b/src/inspector/worker_inspector.h @@ -21,6 +21,7 @@ class WorkerDelegate { const std::string& url, bool waiting, std::shared_ptr worker) = 0; + virtual ~WorkerDelegate() {} }; class WorkerManagerEventHandle { diff --git a/src/node_crypto.cc b/src/node_crypto.cc index 2932df5a405424..19cdbba368fea1 100644 --- a/src/node_crypto.cc +++ b/src/node_crypto.cc @@ -4839,6 +4839,7 @@ class KeyPairGenerationConfig { virtual bool Configure(const EVPKeyCtxPointer& ctx) { return true; } + virtual ~KeyPairGenerationConfig() {} }; class RSAKeyPairGenerationConfig : public KeyPairGenerationConfig { diff --git a/src/node_options.h b/src/node_options.h index 32189dacfb080a..0e8af86218b641 100644 --- a/src/node_options.h +++ b/src/node_options.h @@ -24,6 +24,7 @@ struct HostPort { class Options { public: virtual void CheckOptions(std::vector* errors) {} + virtual ~Options() {} }; // These options are currently essentially per-Environment, but it can be nice