Merge pull request #929 from dpacbach/warnings-fix

Fix some minor warnings found with a recent clang version
This commit is contained in:
Gabi Melman 2018-11-28 07:59:32 +02:00 committed by GitHub
commit 486b6937d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View File

@ -193,7 +193,7 @@ struct source_loc
} }
SPDLOG_CONSTEXPR source_loc(const char *filename, int line) SPDLOG_CONSTEXPR source_loc(const char *filename, int line)
: filename(filename) : filename(filename)
, line(line) , line(static_cast<uint32_t>(line))
{ {
} }

View File

@ -37,7 +37,6 @@ struct log_msg
} }
log_msg(const log_msg &other) = default; log_msg(const log_msg &other) = default;
log_msg &operator=(const log_msg &other) = default;
const std::string *logger_name{nullptr}; const std::string *logger_name{nullptr};
level::level_enum level{level::off}; level::level_enum level{level::off};