Skip to content
Permalink
Browse files

src: suppress warning in src/node_env_var.cc

Initialise the superclass object in the copy constructor of mapKVStore

PR-URL: #31136
Refs: #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>
  • Loading branch information
HarshithaKP authored and BridgeAR committed Dec 30, 2019
1 parent c23bbc6 commit 892e7b0d7ffd4e177bf1df7c857af467cec07bc2
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/node_env_var.cc
@@ -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_;

0 comments on commit 892e7b0

Please sign in to comment.
You can’t perform that action at this time.