diff options
author | Val Och <v19930312@gmail.com> | 2021-12-31 20:25:49 +0300 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2022-01-03 15:00:07 +0100 |
commit | c46078fa430bfcc25c26f33da991410372d44d03 (patch) | |
tree | fbffcd3e6658663c205c1ee23ab9dc0d79ddd3cc /tests/structs/bug651441.c-expected | |
parent | 9adade648eacc354cc6f4cf55f00e537a58d136f (diff) | |
download | vala-c46078fa430bfcc25c26f33da991410372d44d03.tar.gz |
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+.
Diffstat (limited to 'tests/structs/bug651441.c-expected')
-rw-r--r-- | tests/structs/bug651441.c-expected | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/structs/bug651441.c-expected b/tests/structs/bug651441.c-expected index a11b15f0d..05d396860 100644 --- a/tests/structs/bug651441.c-expected +++ b/tests/structs/bug651441.c-expected @@ -55,13 +55,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; } void |