diff --git a/include/spdlog/common.h b/include/spdlog/common.h index 4a9110b6..350ae08b 100644 --- a/include/spdlog/common.h +++ b/include/spdlog/common.h @@ -193,7 +193,7 @@ struct source_loc } SPDLOG_CONSTEXPR source_loc(const char *filename, int line) : filename(filename) - , line(line) + , line(static_cast(line)) { } diff --git a/include/spdlog/details/log_msg.h b/include/spdlog/details/log_msg.h index affeb514..5913c3b0 100644 --- a/include/spdlog/details/log_msg.h +++ b/include/spdlog/details/log_msg.h @@ -37,7 +37,6 @@ struct log_msg } log_msg(const log_msg &other) = default; - log_msg &operator=(const log_msg &other) = default; const std::string *logger_name{nullptr}; level::level_enum level{level::off};