Merge branch 'backport-2308-volatile-glib-2-70' into 'glib-2-70'

Backport !2308 “gthread-win32: Remove an unnecessary volatile qualifier” to glib-2-70

See merge request GNOME/glib!2314
This commit is contained in:
Sebastian Dröge 2021-11-01 12:36:23 +00:00
commit 2aca2cfbcc

View File

@ -617,7 +617,7 @@ g_thread_win32_load_library (void)
{
/* FIXME: Add support for UWP app */
#if !defined(G_WINAPI_ONLY_APP)
static volatile gsize _init_once = 0;
static gsize _init_once = 0;
if (g_once_init_enter (&_init_once))
{
kernel32_module = LoadLibraryW (L"kernel32.dll");