diff options
author | Niels De Graef <nielsdegraef@gmail.com> | 2021-05-02 16:57:13 +0200 |
---|---|---|
committer | Daiki Ueno <dueno@src.gnome.org> | 2021-06-12 13:23:00 +0200 |
commit | 2c2b0abef76eb79b6c88b3868d509a12c16e5b0b (patch) | |
tree | 88d1b8b87532d0e76685a2972c68156e57166ef9 /egg | |
parent | dfcfd2e0a22546976afb15609281fbb7c3c17df5 (diff) | |
download | libsecret-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.c | 2 |
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)) { |