summaryrefslogtreecommitdiff
path: root/tests/objects/bug613486.c-expected
diff options
context:
space:
mode:
authorVal Och <v19930312@gmail.com>2021-12-31 20:25:49 +0300
committerRico Tzschichholz <ricotz@ubuntu.com>2022-01-03 15:00:07 +0100
commitc46078fa430bfcc25c26f33da991410372d44d03 (patch)
treefbffcd3e6658663c205c1ee23ab9dc0d79ddd3cc /tests/objects/bug613486.c-expected
parent9adade648eacc354cc6f4cf55f00e537a58d136f (diff)
downloadvala-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/objects/bug613486.c-expected')
-rw-r--r--tests/objects/bug613486.c-expected16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/objects/bug613486.c-expected b/tests/objects/bug613486.c-expected
index 4f8c44a85..ce02c4d4a 100644
--- a/tests/objects/bug613486.c-expected
+++ b/tests/objects/bug613486.c-expected
@@ -313,13 +313,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;
}
gpointer
@@ -381,13 +381,13 @@ bar_get_type_once (void)
GType
bar_get_type (void)
{
- static volatile gsize bar_type_id__volatile = 0;
- if (g_once_init_enter (&bar_type_id__volatile)) {
+ static volatile gsize bar_type_id__once = 0;
+ if (g_once_init_enter (&bar_type_id__once)) {
GType bar_type_id;
bar_type_id = bar_get_type_once ();
- g_once_init_leave (&bar_type_id__volatile, bar_type_id);
+ g_once_init_leave (&bar_type_id__once, bar_type_id);
}
- return bar_type_id__volatile;
+ return bar_type_id__once;
}
static void