From 6cd6a1879c78d444bd695469edd842cf435ee31a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ion=20Gazta=C3=B1aga?= Date: Wed, 29 Dec 2021 17:26:39 +0100 Subject: [PATCH] Fix maybe uninitialized value warnings --- include/boost/move/detail/nsec_clock.hpp | 3 +++ test/order_type.hpp | 1 + 2 files changed, 4 insertions(+) diff --git a/include/boost/move/detail/nsec_clock.hpp b/include/boost/move/detail/nsec_clock.hpp index e43cca4..21b19cd 100644 --- a/include/boost/move/detail/nsec_clock.hpp +++ b/include/boost/move/detail/nsec_clock.hpp @@ -140,6 +140,9 @@ struct cpu_times nanosecond_type system; void clear() { wall = user = system = 0; } + + cpu_times() + { this->clear(); } }; diff --git a/test/order_type.hpp b/test/order_type.hpp index de398ab..e505b60 100644 --- a/test/order_type.hpp +++ b/test/order_type.hpp @@ -25,6 +25,7 @@ struct order_perf_type std::size_t val; order_perf_type() + : key(), val() { ++num_elements; }