diff --git a/include/spdlog/fmt/bundled/core.h b/include/spdlog/fmt/bundled/core.h index ca59fcd5..acc62875 100644 --- a/include/spdlog/fmt/bundled/core.h +++ b/include/spdlog/fmt/bundled/core.h @@ -962,7 +962,8 @@ class arg_map { // The list is unsorted, so just return the first matching name. for (entry *it = map_, *end = map_ + size_; it != end; ++it) { if (it->name == name) { - return it->arg; } + return it->arg; + } } return {}; } diff --git a/include/spdlog/sinks/syslog_sink.h b/include/spdlog/sinks/syslog_sink.h index 29a97347..2bb31cd4 100644 --- a/include/spdlog/sinks/syslog_sink.h +++ b/include/spdlog/sinks/syslog_sink.h @@ -20,7 +20,7 @@ class syslog_sink : public base_sink { public: - syslog_sink(std::string ident, int syslog_option, int syslog_facility, bool enable_formatting) + syslog_sink(std::string ident, int syslog_option, int syslog_facility, bool enable_formatting) : enable_formatting_{enable_formatting} , syslog_levels_{{/* spdlog::level::trace */ LOG_DEBUG, /* spdlog::level::debug */ LOG_DEBUG, @@ -44,7 +44,7 @@ public: syslog_sink &operator=(const syslog_sink &) = delete; protected: - void sink_it_(const details::log_msg & msg) override + void sink_it_(const details::log_msg &msg) override { string_view_t payload;