From ee08901136a271e8bb15a4ff9c4884036e3b53b9 Mon Sep 17 00:00:00 2001 From: Harshitha KP Date: Mon, 30 Dec 2019 07:35:58 -0500 Subject: [PATCH] src: suppress warning in src/node_env_var.cc Initialise the superclass object in the copy constructor of mapKVStore --- src/node_env_var.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node_env_var.cc b/src/node_env_var.cc index 40c0515a3dc2e2..02f24fff205ce6 100644 --- a/src/node_env_var.cc +++ b/src/node_env_var.cc @@ -47,7 +47,7 @@ class MapKVStore final : public KVStore { std::shared_ptr Clone(Isolate* isolate) const override; MapKVStore() = default; - MapKVStore(const MapKVStore& other) : map_(other.map_) {} + MapKVStore(const MapKVStore& other) : KVStore(), map_(other.map_) {} private: mutable Mutex mutex_;