From c46078fa430bfcc25c26f33da991410372d44d03 Mon Sep 17 00:00:00 2001 From: Val Och Date: Fri, 31 Dec 2021 20:25:49 +0300 Subject: codegen: Use __once instead of __volatile in generated code This better reflects purpose of relevant variables, especially given that they aren't volatile anymore on GLib 2.68+. --- tests/asynchronous/bug659886.c-expected | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/asynchronous/bug659886.c-expected') diff --git a/tests/asynchronous/bug659886.c-expected b/tests/asynchronous/bug659886.c-expected index 653823b9d..75de1ed66 100644 --- a/tests/asynchronous/bug659886.c-expected +++ b/tests/asynchronous/bug659886.c-expected @@ -177,13 +177,13 @@ foo_get_type_once (void) GType foo_get_type (void) { - static volatile gsize foo_type_id__volatile = 0; - if (g_once_init_enter (&foo_type_id__volatile)) { + static volatile gsize foo_type_id__once = 0; + if (g_once_init_enter (&foo_type_id__once)) { GType foo_type_id; foo_type_id = foo_get_type_once (); - g_once_init_leave (&foo_type_id__volatile, foo_type_id); + g_once_init_leave (&foo_type_id__once, foo_type_id); } - return foo_type_id__volatile; + return foo_type_id__once; } static void -- cgit v1.2.1