Fix almost every warning (#2195)

Fix almost every warning as of Clang 19

* <codecvt> is deprecated, we can use QString's UTF-16 conversion
  instead
* remove sem_timedwait implementation as we don't need it anymore
* remove a useless shift that has its result discarded
* change usages of deprecated sprintf to snprintf
This commit is contained in:
Nadia Holmquist Pedersen
2024-12-25 16:54:10 +01:00
committed by GitHub
parent be26878b4c
commit c41951d49c
18 changed files with 50 additions and 540 deletions

View File

@ -876,7 +876,7 @@ bool ScreenPanelGL::createContext()
if (ourwin->getWindowID() != 0)
{
if (windowinfo.has_value())
if (glContext = parentwin->getOGLContext()->CreateSharedContext(*windowinfo))
if ((glContext = parentwin->getOGLContext()->CreateSharedContext(*windowinfo)))
glContext->DoneCurrent();
}
else
@ -885,7 +885,7 @@ bool ScreenPanelGL::createContext()
GL::Context::Version{GL::Context::Profile::Core, 4, 3},
GL::Context::Version{GL::Context::Profile::Core, 3, 2}};
if (windowinfo.has_value())
if (glContext = GL::Context::Create(*windowinfo, versionsToTry))
if ((glContext = GL::Context::Create(*windowinfo, versionsToTry)))
glContext->DoneCurrent();
}