From 127c8e795a972f07067a7e6c9c5f954b77f66442 Mon Sep 17 00:00:00 2001 From: dingo Date: Sun, 11 Oct 2026 02:45:49 -0400 Subject: [PATCH] Fix Linux cellular step initializer warning --- docs/engineering/VALIDATION.md | 5 +++++ src/biology/cellular_region_step.cpp | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/engineering/VALIDATION.md b/docs/engineering/VALIDATION.md index d82d6d8..e4ca2c7 100644 --- a/docs/engineering/VALIDATION.md +++ b/docs/engineering/VALIDATION.md @@ -6680,3 +6680,8 @@ passed. `cmake --build build/debug --target evo-mutation-tests` regenerated successfully but stalled before target compilation, at the same Ninja glob recheck seen above. The direct focused MSVC executable is local evidence only; full CI is pending. + +The first CI run (240) also exposed a GCC `-Werror=missing-field-initializers` +diagnostic in the pre-existing `CellularRegionStepCandidate` aggregate setup. +The initializer now explicitly supplies empty starved and heat fields; CI for +that correction is pending. diff --git a/src/biology/cellular_region_step.cpp b/src/biology/cellular_region_step.cpp index 8c8b8d7..1dd7ea9 100644 --- a/src/biology/cellular_region_step.cpp +++ b/src/biology/cellular_region_step.cpp @@ -26,7 +26,7 @@ propose_cellular_region_step(std::uint64_t begin_tick, CellularArea area, if (ordered[i - 1]->life_id == ordered[i]->life_id) return std::unexpected{CellularRegionStepError::duplicate_life_id}; - CellularRegionStepCandidate candidate{begin_tick, begin_tick + 1, {}, {}}; + CellularRegionStepCandidate candidate{begin_tick, begin_tick + 1, {}, {}, {}, {}}; candidate.lives.reserve(ordered.size()); candidate.starved.reserve(ordered.size()); std::vector patch_stock;