mirror of https://github.com/AxioDL/metaforce.git
Editor: GCC warning fixes
This commit is contained in:
parent
19d9ed9529
commit
c411fe2b3f
|
@ -20,12 +20,12 @@ static logvisor::Module Log{"URDE"};
|
||||||
|
|
||||||
static hecl::SystemString CPUFeatureString(const zeus::CPUInfo& cpuInf) {
|
static hecl::SystemString CPUFeatureString(const zeus::CPUInfo& cpuInf) {
|
||||||
hecl::SystemString features;
|
hecl::SystemString features;
|
||||||
|
#if __x86_64__
|
||||||
auto AddFeature = [&features](const hecl::SystemChar* str) {
|
auto AddFeature = [&features](const hecl::SystemChar* str) {
|
||||||
if (!features.empty())
|
if (!features.empty())
|
||||||
features += _SYS_STR(", ");
|
features += _SYS_STR(", ");
|
||||||
features += str;
|
features += str;
|
||||||
};
|
};
|
||||||
#if __x86_64__
|
|
||||||
if (cpuInf.AESNI)
|
if (cpuInf.AESNI)
|
||||||
AddFeature(_SYS_STR("AES-NI"));
|
AddFeature(_SYS_STR("AES-NI"));
|
||||||
if (cpuInf.SSE1)
|
if (cpuInf.SSE1)
|
||||||
|
@ -177,7 +177,7 @@ int main(int argc, const boo::SystemChar** argv)
|
||||||
if (!logFile.empty()) {
|
if (!logFile.empty()) {
|
||||||
std::time_t time = std::chrono::system_clock::to_time_t(std::chrono::system_clock::now());
|
std::time_t time = std::chrono::system_clock::to_time_t(std::chrono::system_clock::now());
|
||||||
char buf[100];
|
char buf[100];
|
||||||
std::strftime(buf, 100, "%Y-%m-%d_%H-%M-%S\0", std::localtime(&time));
|
std::strftime(buf, 100, "%Y-%m-%d_%H-%M-%S", std::localtime(&time));
|
||||||
hecl::SystemString timeStr = hecl::SystemStringConv(buf).c_str();
|
hecl::SystemString timeStr = hecl::SystemStringConv(buf).c_str();
|
||||||
logFilePath = fmt::format(FMT_STRING(_SYS_STR("{}/{}-{}")), fileMgr.getStoreRoot(), timeStr, logFile);
|
logFilePath = fmt::format(FMT_STRING(_SYS_STR("{}/{}-{}")), fileMgr.getStoreRoot(), timeStr, logFile);
|
||||||
logvisor::RegisterFileLogger(logFilePath.c_str());
|
logvisor::RegisterFileLogger(logFilePath.c_str());
|
||||||
|
|
Loading…
Reference in New Issue