aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-11-01 15:12:08 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-11-01 15:12:08 +0200
commit9bbdade4a502f72d1d5a25d6ace2f6545c2658b0 (patch)
treefbb10cb436e6e3810098aa0c582afecea049e6e6
parentd0be665b21c6d884852ebae530c7b0e225b8f244 (diff)
Fix atomic count initialization
-rw-r--r--build2/target.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/build2/target.hxx b/build2/target.hxx
index 80a5d6d..cc9c9bd 100644
--- a/build2/target.hxx
+++ b/build2/target.hxx
@@ -465,7 +465,7 @@ namespace build2
class opstate
{
public:
- mutable atomic_count task_count = 0; // Start offset_touched - 1.
+ mutable atomic_count task_count {0}; // Start offset_touched - 1.
// Number of direct targets that depend on this target in the current
// operation. It is incremented during match and then decremented during
@@ -473,7 +473,7 @@ namespace build2
// detect the last chance (i.e., last dependent) to execute the command
// (see also the first/last execution modes in <operation.hxx>).
//
- mutable atomic_count dependents = 0;
+ mutable atomic_count dependents {0};
// Matched rule (pointer to hint_rule_map element). Note that in case of
// a direct recipe assignment we may not have a rule (NULL).