Fix compilation

This commit is contained in:
SirLynix 2024-02-10 13:50:10 +01:00
parent 57ad486c01
commit 9e3ca2472b
2 changed files with 8 additions and 8 deletions

View File

@ -29,7 +29,7 @@ namespace Nz::PlatformImpl
return std::string(&name[0]);
#else
NazaraUnused(threadHandle)
NazaraUnused(threadHandle);
return "<unsupported>";
#endif
}
@ -41,7 +41,7 @@ namespace Nz::PlatformImpl
#elif defined(__APPLE__)
::pthread_setname_np(threadName);
#else
NazaraUnused(threadName)
NazaraUnused(threadName);
NazaraWarning("setting current thread name is not supported on this platform");
#endif
}
@ -51,12 +51,12 @@ namespace Nz::PlatformImpl
#if defined(__linux__) || defined(__FreeBSD__)
::pthread_setname_np(threadHandle, threadName);
#elif defined(__APPLE__)
NazaraUnused(threadHandle)
NazaraUnused(threadName)
NazaraUnused(threadHandle);
NazaraUnused(threadName);
NazaraWarning("only current thread name can be set on MacOS X");
#else
NazaraUnused(threadHandle)
NazaraUnused(threadName)
NazaraUnused(threadHandle);
NazaraUnused(threadName);
NazaraWarning("setting a thread name is not supported on this platform");
#endif
}

View File

@ -101,8 +101,8 @@ NAZARA_WARNING_MSVC_DISABLE(6320 6322)
NAZARA_WARNING_POP()
#else
NazaraUnused(threadId)
NazaraUnused(threadName)
NazaraUnused(threadId);
NazaraUnused(threadName);
NazaraWarning("ThreadName exception is only supported with MSVC");
#endif
}