summaryrefslogtreecommitdiff
path: root/tests/dbus/filedescriptor-errors_client.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/dbus/filedescriptor-errors_client.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/dbus/filedescriptor-errors_client.c-expected')
-rw-r--r--tests/dbus/filedescriptor-errors_client.c-expected8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/dbus/filedescriptor-errors_client.c-expected b/tests/dbus/filedescriptor-errors_client.c-expected
index 67a5feb38..9b1a49f78 100644
--- a/tests/dbus/filedescriptor-errors_client.c-expected
+++ b/tests/dbus/filedescriptor-errors_client.c-expected
@@ -138,13 +138,13 @@ test_get_type_once (void)
GType
test_get_type (void)
{
- static volatile gsize test_type_id__volatile = 0;
- if (g_once_init_enter (&test_type_id__volatile)) {
+ static volatile gsize test_type_id__once = 0;
+ if (g_once_init_enter (&test_type_id__once)) {
GType test_type_id;
test_type_id = test_get_type_once ();
- g_once_init_leave (&test_type_id__volatile, test_type_id);
+ g_once_init_leave (&test_type_id__once, test_type_id);
}
- return test_type_id__volatile;
+ return test_type_id__once;
}
G_DEFINE_TYPE_EXTENDED (TestProxy, test_proxy, G_TYPE_DBUS_PROXY, 0, G_IMPLEMENT_INTERFACE (TYPE_TEST, test_proxy_test_interface_init) )