summaryrefslogtreecommitdiff
path: root/egg
diff options
context:
space:
mode:
authorNiels De Graef <nielsdegraef@gmail.com>2021-05-02 16:57:13 +0200
committerDaiki Ueno <dueno@src.gnome.org>2021-06-12 13:23:00 +0200
commit2c2b0abef76eb79b6c88b3868d509a12c16e5b0b (patch)
tree88d1b8b87532d0e76685a2972c68156e57166ef9 /egg
parentdfcfd2e0a22546976afb15609281fbb7c3c17df5 (diff)
downloadlibsecret-2c2b0abef76eb79b6c88b3868d509a12c16e5b0b.tar.gz
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
Diffstat (limited to 'egg')
-rw-r--r--egg/egg-libgcrypt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/egg/egg-libgcrypt.c b/egg/egg-libgcrypt.c
index e215001..9617ebb 100644
--- a/egg/egg-libgcrypt.c
+++ b/egg/egg-libgcrypt.c
@@ -64,7 +64,7 @@ GCRY_THREAD_OPTION_PTHREAD_IMPL;
void
egg_libgcrypt_initialize (void)
{
- static volatile gsize gcrypt_initialized = 0;
+ static size_t gcrypt_initialized = 0;
unsigned seed;
if (g_once_init_enter (&gcrypt_initialized)) {