[Analyzers][CPP] Turn on warning 4458 (#22265)

* Turn on warning 4458

Fix the errors by changing variable names and
supressing the warning on winRT GDI headers

* explaining the warning disables
This commit is contained in:
sosssego
2022-11-29 14:10:48 +00:00
committed by GitHub
parent 21a9c82df4
commit 6a6c45189e
14 changed files with 75 additions and 52 deletions

View File

@@ -98,11 +98,11 @@ void Logger::init(std::string loggerName, std::wstring logFilePath, std::wstring
void Logger::init(std::vector<spdlog::sink_ptr> sinks)
{
auto logger = std::make_shared<spdlog::logger>("", begin(sinks), end(sinks));
if (!logger)
auto init_logger = std::make_shared<spdlog::logger>("", begin(sinks), end(sinks));
if (!init_logger)
{
return;
}
Logger::logger = logger;
Logger::logger = init_logger;
}