mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
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:
@@ -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_;
|
||||
|
||||
Reference in New Issue
Block a user