diff --git a/include/spdlog/common.h b/include/spdlog/common.h index d078a1ab..d8c5811c 100644 --- a/include/spdlog/common.h +++ b/include/spdlog/common.h @@ -210,10 +210,10 @@ struct source_loc , funcname{""} { } - SPDLOG_CONSTEXPR source_loc(const char *filename, int line, const char *funcname) - : filename{filename} - , line{static_cast(line)} - , funcname{funcname} + SPDLOG_CONSTEXPR source_loc(const char *filename_in, int line_in, const char *funcname_in) + : filename{filename_in} + , line{static_cast(line_in)} + , funcname{funcname_in} { }