Fixed some analyzer warnings

This commit is contained in:
gabime 2017-05-06 15:33:12 +03:00
parent 8b11ffe163
commit 81965bc300
2 changed files with 6 additions and 2 deletions

View File

@ -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

View File

@ -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;