mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-27 00:00:07 -06:00
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:

committed by
GitHub

parent
be26878b4c
commit
c41951d49c
@ -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();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user