Skip to content

Commit

Permalink
src: suppress warning in src/node_env_var.cc
Browse files Browse the repository at this point in the history
Initialise the superclass object in the copy constructor of mapKVStore

PR-URL: #31136
Refs: #18983
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: David Carlier <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
  • Loading branch information
HarshithaKP authored and BridgeAR committed Jan 3, 2020
1 parent c23bbc6 commit 892e7b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node_env_var.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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_;
Expand Down

0 comments on commit 892e7b0

Please sign in to comment.