From 4614f64aeb8334026989ec705b9714daa443b7a4 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 PR-URL: https://github.com/nodejs/node/pull/31136 Refs: https://github.com/nodejs/node/issues/18983 Reviewed-By: Anna Henningsen Reviewed-By: Rich Trott Reviewed-By: Luigi Pinca Reviewed-By: David Carlier Reviewed-By: Colin Ihrig --- 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_;