diff options
author | Niels De Graef <nielsdegraef@gmail.com> | 2021-05-02 16:57:13 +0200 |
---|---|---|
committer | Niels De Graef <nielsdegraef@gmail.com> | 2021-05-02 17:09:43 +0200 |
commit | fcc616ace8f09cf29166bb5f9ca259f3479271f3 (patch) | |
tree | 99f9b32c241291f2ad1353d6380722eda6ad9f08 /egg/egg-symkey.c | |
parent | 6058f0378ea91024af32c9dc42d3afde1bac3da8 (diff) | |
download | gcr-fcc616ace8f09cf29166bb5f9ca259f3479271f3.tar.gz |
Drop "volatile" for g_once_init_enter locationsbugfix/drop-volatile
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/egg-symkey.c')
-rw-r--r-- | egg/egg-symkey.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/egg/egg-symkey.c b/egg/egg-symkey.c index a0b08a3..76c4f6b 100644 --- a/egg/egg-symkey.c +++ b/egg/egg-symkey.c @@ -56,7 +56,7 @@ static GQuark OID_SHA1; static void init_quarks (void) { - static volatile gsize quarks_inited = 0; + static size_t quarks_inited = 0; if (g_once_init_enter (&quarks_inited)) { |