Skip to content

Commit

Permalink
Avoid build warnings
Browse files Browse the repository at this point in the history
GLib now produces noisy build warnings if there's
an errant volatile in a variable declaration.
That's progress!
  • Loading branch information
Matthias Clasen committed Apr 5, 2021
1 parent 9edd72d commit 3ab0d1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libportal/portal-enums.c.template
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
GType
@enum_name@_get_type (void)
{
static volatile gsize g_define_type_id__volatile = 0;
static gsize g_define_type_id__volatile = 0;

if (g_once_init_enter (&g_define_type_id__volatile))
{
Expand Down

0 comments on commit 3ab0d1b

Please sign in to comment.