From 81965bc300eebb051ec22adf5d0df7f34dc6c67c Mon Sep 17 00:00:00 2001 From: gabime Date: Sat, 6 May 2017 15:33:12 +0300 Subject: [PATCH] Fixed some analyzer warnings --- include/spdlog/details/async_log_helper.h | 6 +++++- include/spdlog/details/pattern_formatter_impl.h | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/include/spdlog/details/async_log_helper.h b/include/spdlog/details/async_log_helper.h index 58eb63f1..1e454550 100644 --- a/include/spdlog/details/async_log_helper.h +++ b/include/spdlog/details/async_log_helper.h @@ -60,11 +60,15 @@ async_msg(async_msg&& other) SPDLOG_NOEXCEPT: logger_name(std::move(other.logger_name)), level(std::move(other.level)), time(std::move(other.time)), + thread_id(other.thread_id), txt(std::move(other.txt)), msg_type(std::move(other.msg_type)) {} - async_msg(async_msg_type m_type):msg_type(m_type) + async_msg(async_msg_type m_type): + level(level::info), + thread_id(0), + msg_type(m_type) {} async_msg& operator=(async_msg&& other) SPDLOG_NOEXCEPT diff --git a/include/spdlog/details/pattern_formatter_impl.h b/include/spdlog/details/pattern_formatter_impl.h index 123024f7..49e8320d 100644 --- a/include/spdlog/details/pattern_formatter_impl.h +++ b/include/spdlog/details/pattern_formatter_impl.h @@ -324,7 +324,7 @@ class z_formatter:public flag_formatter public: const std::chrono::seconds cache_refresh = std::chrono::seconds(5); - z_formatter():_last_update(std::chrono::seconds(0)) + z_formatter():_last_update(std::chrono::seconds(0)), _offset_minutes(0) {} z_formatter(const z_formatter&) = delete; z_formatter& operator=(const z_formatter&) = delete;