aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/scheduler.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2019-10-25 10:25:35 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2019-10-25 10:25:35 +0200
commit92080cb230447d3b4db96cc514829f859f5d3b60 (patch)
tree69e410ad0bdb8e656d9644c0f2eead6ec425a106 /libbuild2/scheduler.hxx
parent87891a56cbfc739b32bc1720d21feece81bbafc3 (diff)
Fix maybe used uninitialized warning
Diffstat (limited to 'libbuild2/scheduler.hxx')
-rw-r--r--libbuild2/scheduler.hxx2
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)