From d7fe2d39dbacf3cb6efe2b6f4f6581e7b7bb0917 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 25 Jun 2020 12:33:13 +0200 Subject: Fix warning --- libbuild2/cc/compile-rule.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- cgit v1.1