From 3af4676c8342ab3722bc58d8f8b5414ba016aa1d Mon Sep 17 00:00:00 2001 From: Brett Date: Tue, 23 Jul 2024 03:09:12 -0400 Subject: [PATCH] clang --- CMakeLists.txt | 2 +- include/blt/gp/program.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a4f7b59..59a745a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ cmake_minimum_required(VERSION 3.25) -project(blt-gp VERSION 0.0.103) +project(blt-gp VERSION 0.0.104) include(CTest) diff --git a/include/blt/gp/program.h b/include/blt/gp/program.h index f642373..377b0ef 100644 --- a/include/blt/gp/program.h +++ b/include/blt/gp/program.h @@ -517,7 +517,7 @@ namespace blt::gp std::atomic_uint64_t current_generation = 0; blt::u64 seed; - prog_config_t config; + prog_config_t config{}; struct concurrency_storage { @@ -533,7 +533,7 @@ namespace blt::gp explicit concurrency_storage(blt::size_t threads): barrier(threads, lifetime_over) {} - } thread_helper{config.threads}; + } thread_helper{config.threads == 0 ? std::thread::hardware_concurrency() : config.threads}; // for convenience, shouldn't decrease performance too much std::atomic*> thread_execution_service = nullptr;