Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarshitha KP <harshi46@in.ibm.com>2019-12-30 15:35:58 +0300
committerRich Trott <rtrott@gmail.com>2020-01-03 02:17:27 +0300
commit4614f64aeb8334026989ec705b9714daa443b7a4 (patch)
treef87e79a2603d5a9c2945aa6bc54f1ba2f04b62f6 /src/node_env_var.cc
parentb8d2ba67a666aca8e61421b8dc69517afd2b6d71 (diff)
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>
Diffstat (limited to 'src/node_env_var.cc')
-rw-r--r--src/node_env_var.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node_env_var.cc b/src/node_env_var.cc
index 40c0515a3dc..02f24fff205 100644
--- a/src/node_env_var.cc
+++ b/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_;