Skip to content

Commit 4614f64

Browse files
HarshithaKPTrott
authored andcommitted
src: suppress warning in src/node_env_var.cc
Initialise the superclass object in the copy constructor of mapKVStore PR-URL: nodejs#31136 Refs: nodejs#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>
1 parent b8d2ba6 commit 4614f64

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/node_env_var.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class MapKVStore final : public KVStore {
4747
std::shared_ptr<KVStore> Clone(Isolate* isolate) const override;
4848

4949
MapKVStore() = default;
50-
MapKVStore(const MapKVStore& other) : map_(other.map_) {}
50+
MapKVStore(const MapKVStore& other) : KVStore(), map_(other.map_) {}
5151

5252
private:
5353
mutable Mutex mutex_;

0 commit comments

Comments
 (0)