From 9bbdade4a502f72d1d5a25d6ace2f6545c2658b0 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 1 Nov 2018 15:12:08 +0200 Subject: Fix atomic count initialization --- build2/target.hxx | 4 ++-- 1 file 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 ). // - 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). -- cgit v1.1