Skip to content

Commit

Permalink
Do not use volatile GType storage
Browse files Browse the repository at this point in the history
The `volatile` modifier got dropped from GLib.
  • Loading branch information
ebassi committed Jan 25, 2022
1 parent 60e168d commit 779a662
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/graphene-gobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
GType \
type_name ## _get_type (void) \
{ \
static volatile gsize graphene_define_id__volatile = 0; \
static gsize graphene_define_id__volatile = 0; \
if (g_once_init_enter (&graphene_define_id__volatile)) \
{ \
static const GEnumValue v[] = { \
Expand Down Expand Up @@ -140,7 +140,7 @@
GType \
type_name ## _get_type (void) \
{ \
static volatile gsize graphene_define_id__volatile = 0; \
static gsize graphene_define_id__volatile = 0; \
if (g_once_init_enter (&graphene_define_id__volatile)) \
{ \
GType graphene_define_id = \
Expand Down

0 comments on commit 779a662

Please sign in to comment.