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 <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 Trott committed Jan 2, 2020
1 parent b8d2ba6 commit 4614f64
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
@@ -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 4614f64

Please sign in to comment.