mirror of
https://github.com/gabime/spdlog.git
synced 2024-12-25 10:01:33 +08:00
Fix compiler warnings
This commit is contained in:
parent
79259fdb3f
commit
c172c72be9
@ -12,8 +12,8 @@
|
|||||||
namespace spdlog {
|
namespace spdlog {
|
||||||
namespace details {
|
namespace details {
|
||||||
|
|
||||||
SPDLOG_INLINE log_msg::log_msg(spdlog::source_loc loc, string_view_t logger_name, spdlog::level::level_enum lvl, spdlog::string_view_t msg)
|
SPDLOG_INLINE log_msg::log_msg(spdlog::source_loc loc, string_view_t a_logger_name, spdlog::level::level_enum lvl, spdlog::string_view_t msg)
|
||||||
: logger_name(logger_name)
|
: logger_name(a_logger_name)
|
||||||
, level(lvl)
|
, level(lvl)
|
||||||
, time(os::now())
|
, time(os::now())
|
||||||
#ifndef SPDLOG_NO_THREAD_ID
|
#ifndef SPDLOG_NO_THREAD_ID
|
||||||
@ -23,8 +23,8 @@ SPDLOG_INLINE log_msg::log_msg(spdlog::source_loc loc, string_view_t logger_name
|
|||||||
, payload(msg)
|
, payload(msg)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
SPDLOG_INLINE log_msg::log_msg(string_view_t logger_name, spdlog::level::level_enum lvl, spdlog::string_view_t msg)
|
SPDLOG_INLINE log_msg::log_msg(string_view_t a_logger_name, spdlog::level::level_enum lvl, spdlog::string_view_t msg)
|
||||||
: log_msg(source_loc{}, logger_name, lvl, msg)
|
: log_msg(source_loc{}, a_logger_name, lvl, msg)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
} // namespace details
|
} // namespace details
|
||||||
|
@ -462,7 +462,7 @@ SPDLOG_INLINE void wstr_to_utf8buf(wstring_view_t wstr, memory_buf_t &target)
|
|||||||
#endif // (defined(SPDLOG_WCHAR_TO_UTF8_SUPPORT) || defined(SPDLOG_WCHAR_FILENAMES)) && defined(_WIN32)
|
#endif // (defined(SPDLOG_WCHAR_TO_UTF8_SUPPORT) || defined(SPDLOG_WCHAR_FILENAMES)) && defined(_WIN32)
|
||||||
|
|
||||||
// return true on success
|
// return true on success
|
||||||
SPDLOG_INLINE bool mkdir_(const filename_t &path)
|
static SPDLOG_INLINE bool mkdir_(const filename_t &path)
|
||||||
{
|
{
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
#ifdef SPDLOG_WCHAR_FILENAMES
|
#ifdef SPDLOG_WCHAR_FILENAMES
|
||||||
|
@ -77,7 +77,7 @@ private:
|
|||||||
{
|
{
|
||||||
// count = std::min(count, spaces_.size());
|
// count = std::min(count, spaces_.size());
|
||||||
// assert(count <= spaces_.size());
|
// assert(count <= spaces_.size());
|
||||||
fmt_helper::append_string_view(string_view_t(spaces_.data(), count), dest_);
|
fmt_helper::append_string_view(string_view_t(spaces_.data(), static_cast<size_t>(count)), dest_);
|
||||||
}
|
}
|
||||||
|
|
||||||
const padding_info &padinfo_;
|
const padding_info &padinfo_;
|
||||||
|
@ -81,7 +81,7 @@ void SPDLOG_INLINE thread_pool::post_async_msg_(async_msg &&new_msg, async_overf
|
|||||||
|
|
||||||
void SPDLOG_INLINE thread_pool::worker_loop_()
|
void SPDLOG_INLINE thread_pool::worker_loop_()
|
||||||
{
|
{
|
||||||
while (process_next_msg_()) {};
|
while (process_next_msg_()) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
// process next message in the queue
|
// process next message in the queue
|
||||||
|
Loading…
Reference in New Issue
Block a user