diff --git a/rerun_cpp/src/rerun/recording_stream.cpp b/rerun_cpp/src/rerun/recording_stream.cpp index 6e4beb273572..e645425460eb 100644 --- a/rerun_cpp/src/rerun/recording_stream.cpp +++ b/rerun_cpp/src/rerun/recording_stream.cpp @@ -7,6 +7,7 @@ #include +#include #include // to_string #include @@ -18,6 +19,9 @@ namespace rerun { case StoreKind::Blueprint: return RR_STORE_KIND_BLUEPRINT; + + default: + assert(false && "unreachable"); } // This should never happen since if we missed a switch case we'll get a warning on diff --git a/tests/cpp/plot_dashboard_stress/main.cpp b/tests/cpp/plot_dashboard_stress/main.cpp index e3181c01b895..9a582b1e4249 100644 --- a/tests/cpp/plot_dashboard_stress/main.cpp +++ b/tests/cpp/plot_dashboard_stress/main.cpp @@ -147,9 +147,12 @@ int main(int argc, char** argv) { std::vector offsets; if (temporal_batch_size.has_value()) { + // GCC wrongfully thinks that `temporal_batch_size` is uninitialized despite being initialized upon creation. + RR_DISABLE_MAYBE_UNINITIALIZED_PUSH for (size_t i = 0; i < num_points_per_series; i += *temporal_batch_size) { offsets.push_back(i); } + RR_DISABLE_MAYBE_UNINITIALIZED_POP } else { offsets.resize(sim_times.size()); std::iota(offsets.begin(), offsets.end(), 0);