From 3b32e2c6fef6edd68dc6bdceed3ce1c035d4cb15 Mon Sep 17 00:00:00 2001 From: Paul Slavin Date: Sun, 12 Jan 2025 22:46:02 +0000 Subject: [PATCH] Fix uninitialised m_verbosity --- include/pagmo/algorithms/nsga3.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/pagmo/algorithms/nsga3.hpp b/include/pagmo/algorithms/nsga3.hpp index a6787ec21..4b7796714 100644 --- a/include/pagmo/algorithms/nsga3.hpp +++ b/include/pagmo/algorithms/nsga3.hpp @@ -53,7 +53,7 @@ class PAGMO_DLL_PUBLIC nsga3{ mutable NSGA3Memory m_memory{}; mutable detail::random_engine_type m_reng; // Defaults to std::mt19937 mutable log_type m_log; - unsigned m_verbosity; + unsigned m_verbosity {0}; mutable std::vector m_refpoints; // Serialisation support friend class boost::serialization::access;