Fix clang -Wdeprecated-pragma warnings by removing deprecated ATOMIC_VAR_INIT

This commit is contained in:
Sean McBride
2023-10-20 14:28:36 -04:00
parent 162e017b2d
commit 6ed999674c

View File

@@ -190,7 +190,7 @@ public:
{
public:
// -- Parse Cache
std::atomic<bool> ParseCacheChanged = ATOMIC_VAR_INIT(false);
std::atomic<bool> ParseCacheChanged{ false };
cmFileTime ParseCacheTime;
ParseCacheT ParseCache;
@@ -583,7 +583,7 @@ private:
std::string SettingsStringMoc_;
std::string SettingsStringUic_;
// -- Worker thread pool
std::atomic<bool> JobError_ = ATOMIC_VAR_INIT(false);
std::atomic<bool> JobError_{ false };
cmWorkerPool WorkerPool_;
// -- Concurrent processing
mutable std::mutex CMakeLibMutex_;