VCM: fix compilation warning

This commit is contained in:
yuyoyuppe
2020-10-15 15:43:26 +03:00
parent 6e92e20884
commit d4e0265821

View File

@@ -45,9 +45,9 @@ void LogToFile(std::string what, const bool verbose)
}
if (logSizeMBs > maxLogSizeMegabytes)
{
std::error_code _;
std::error_code __;
// Truncate the log file to zero
std::filesystem::resize_file(logFilePath, 0, _);
std::filesystem::resize_file(logFilePath, 0, __);
}
std::ofstream myfile;
myfile.open(logFilePath, std::fstream::app);