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 <anna@addaleax.net>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: David Carlier <devnexen@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
Harshitha KP
2019-12-30 07:35:58 -05:00
committed by Rich Trott
parent b8d2ba67a6
commit 4614f64aeb

View File

@@ -47,7 +47,7 @@ class MapKVStore final : public KVStore {
std::shared_ptr<KVStore> 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_;