aboutsummaryrefslogtreecommitdiff
path: root/libbuild2
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2020-06-25 12:33:13 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2020-06-25 12:33:13 +0200
commitd7fe2d39dbacf3cb6efe2b6f4f6581e7b7bb0917 (patch)
tree594840db5b003cc1d4a4b84e13470b009c0b141f /libbuild2
parenta17b6b40510b8ec5ca18dd5203e4b229aa6fee8a (diff)
Fix warning
Diffstat (limited to 'libbuild2')
-rw-r--r--libbuild2/cc/compile-rule.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbuild2/cc/compile-rule.cxx b/libbuild2/cc/compile-rule.cxx
index 5e757f1..2af5012 100644
--- a/libbuild2/cc/compile-rule.cxx
+++ b/libbuild2/cc/compile-rule.cxx
@@ -686,7 +686,7 @@ namespace build2
//
wait_guard wg (ctx, ctx.count_busy (), t[a].task_count, true);
- target_state src_ts1, src_ts2;
+ target_state src_ts1 (target_state::unknown), src_ts2 (src_ts1);
size_t src_i (~0); // Index of src target.
size_t start (pts.size ()); // Index of the first to be added.