mirror of
https://gitlab.gnome.org/GNOME/libsecret.git
synced 2024-12-22 04:38:55 +00:00
Drop "volatile" for g_once_init_enter locations
This fixes a few (fatal in gcc 11) warnings, breaking the CI. For the original discussion on why this change is needed, see https://gitlab.gnome.org/GNOME/glib/-/issues/600
This commit is contained in:
parent
dfcfd2e0a2
commit
2c2b0abef7
@ -64,7 +64,7 @@ GCRY_THREAD_OPTION_PTHREAD_IMPL;
|
|||||||
void
|
void
|
||||||
egg_libgcrypt_initialize (void)
|
egg_libgcrypt_initialize (void)
|
||||||
{
|
{
|
||||||
static volatile gsize gcrypt_initialized = 0;
|
static size_t gcrypt_initialized = 0;
|
||||||
unsigned seed;
|
unsigned seed;
|
||||||
|
|
||||||
if (g_once_init_enter (&gcrypt_initialized)) {
|
if (g_once_init_enter (&gcrypt_initialized)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user