From 0d2ea14ac1d0b59588b1bfa60e6e45246496572c Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Wed, 18 Nov 2020 19:58:09 -0800 Subject: types: fix various use of volatile in type registration The use of volatile was incorrect in GLib and has been that way for a long time. Recently however that has changed, and this makes GTK follow suit to avoid using volatile in the type registration. See also: https://gitlab.gnome.org/GNOME/glib/-/merge_requests/1719 Combined with the above merge request for GLib, this fixes a large number of compilation warnings when using Clang. --- gsk/gskrendernode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gsk/gskrendernode.c') diff --git a/gsk/gskrendernode.c b/gsk/gskrendernode.c index 92dfc77e2f..f0980ba369 100644 --- a/gsk/gskrendernode.c +++ b/gsk/gskrendernode.c @@ -184,7 +184,7 @@ gsk_render_node_init (GskRenderNode *self) GType gsk_render_node_get_type (void) { - static volatile gsize render_node_type__volatile; + static gsize render_node_type__volatile; if (g_once_init_enter (&render_node_type__volatile)) { -- cgit v1.2.1