From 4a0f4fc186195ae9a0593fde7e0e32269d344ed0 Mon Sep 17 00:00:00 2001 From: gabime Date: Fri, 13 Dec 2019 17:55:39 +0200 Subject: [PATCH] keep clang-tidy happy --- include/spdlog/cfg/env-inl.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/spdlog/cfg/env-inl.h b/include/spdlog/cfg/env-inl.h index 81b9adb1..54db9dce 100644 --- a/include/spdlog/cfg/env-inl.h +++ b/include/spdlog/cfg/env-inl.h @@ -66,7 +66,7 @@ SPDLOG_INLINE std::unordered_map extract_key_vals_(con { std::string token; std::istringstream token_stream(str); - std::unordered_map rv; + std::unordered_map rv{}; while (std::getline(token_stream, token, ',')) { if (token.empty()) @@ -107,7 +107,6 @@ inline details::registry::logger_levels extract_levels_(const std::string& input return rv; } - SPDLOG_INLINE void load_levels() { auto levels = extract_levels_(details::os::getenv("SPDLOG_LEVEL"));