Merge pull request #9260 from leoetlino/fmt-checks

Common/Log: Add compile-time format string checks
This commit is contained in:
Léo Lam
2020-11-20 16:05:25 +01:00
committed by GitHub
7 changed files with 91 additions and 22 deletions

View File

@ -81,7 +81,7 @@ void GenericLog(LOG_LEVELS level, LOG_TYPE type, const char* file, int line, con
}
void GenericLogFmtImpl(LOG_LEVELS level, LOG_TYPE type, const char* file, int line,
std::string_view format, const fmt::format_args& args)
fmt::string_view format, const fmt::format_args& args)
{
auto* instance = LogManager::GetInstance();
if (instance == nullptr)