summaryrefslogtreecommitdiff
path: root/egg/egg-oid.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-oid.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-oid.c')
-rw-r--r--egg/egg-oid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/egg/egg-oid.c b/egg/egg-oid.c
index ec77a0b..48e9677 100644
--- a/egg/egg-oid.c
+++ b/egg/egg-oid.c
@@ -142,7 +142,7 @@ static OidInfo oid_info[] = {
static OidInfo*
find_oid_info (GQuark oid)
{
- static volatile gsize inited_oids = 0;
+ static size_t inited_oids = 0;
int i;
g_return_val_if_fail (oid != 0, NULL);