diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2019-10-25 10:25:35 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2019-10-25 10:25:35 +0200 |
commit | 92080cb230447d3b4db96cc514829f859f5d3b60 (patch) | |
tree | 69e410ad0bdb8e656d9644c0f2eead6ec425a106 | |
parent | 87891a56cbfc739b32bc1720d21feece81bbafc3 (diff) |
Fix maybe used uninitialized warning
-rw-r--r-- | libbuild2/scheduler.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libbuild2/scheduler.hxx b/libbuild2/scheduler.hxx index 4495cb9..b8cc7c0 100644 --- a/libbuild2/scheduler.hxx +++ b/libbuild2/scheduler.hxx @@ -224,7 +224,7 @@ namespace build2 struct tune_guard { - tune_guard (): s_ (nullptr) {} + tune_guard (): s_ (nullptr), o_ (0) {} tune_guard (scheduler& s, size_t ma): s_ (&s), o_ (s_->tune (ma)) {} tune_guard (tune_guard&& x): s_ (x.s_), o_ (x.o_) {x.s_ = nullptr;} tune_guard& operator= (tune_guard&& x) |