summaryrefslogtreecommitdiff
path: root/egg/egg-symkey.c
diff options
context:
space:
mode:
authorNiels De Graef <nielsdegraef@gmail.com>2021-05-02 16:57:13 +0200
committerNiels De Graef <nielsdegraef@gmail.com>2021-05-02 17:09:43 +0200
commitfcc616ace8f09cf29166bb5f9ca259f3479271f3 (patch)
tree99f9b32c241291f2ad1353d6380722eda6ad9f08 /egg/egg-symkey.c
parent6058f0378ea91024af32c9dc42d3afde1bac3da8 (diff)
downloadgcr-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.c2
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)) {