[gucharmap] lib: Remove bogus volatile from type builtins code
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gucharmap] lib: Remove bogus volatile from type builtins code
- Date: Mon, 11 Jan 2021 21:01:44 +0000 (UTC)
commit 867fb17a1d8dd42ff40f9fd5ed01591f335b7bb4
Author: Christian Persch <chpe src gnome org>
Date: Mon Jan 11 22:01:32 2021 +0100
lib: Remove bogus volatile from type builtins code
gucharmap/gucharmap-type-builtins.c.template | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/gucharmap/gucharmap-type-builtins.c.template b/gucharmap/gucharmap-type-builtins.c.template
index fb78d123..dba51585 100644
--- a/gucharmap/gucharmap-type-builtins.c.template
+++ b/gucharmap/gucharmap-type-builtins.c.template
@@ -13,9 +13,9 @@
GType
@enum_name@_get_type (void)
{
- static volatile gsize g_define_type_id__volatile = 0;
+ static gsize g_define_type_id = 0;
- if (g_once_init_enter (&g_define_type_id__volatile)) {
+ if (g_once_init_enter (&g_define_type_id)) {
static const G@Type@Value values[] = {
/*** END value-header ***/
@@ -26,13 +26,13 @@ GType
/*** BEGIN value-tail ***/
{ 0, NULL, NULL }
};
- GType g_define_type_id = \
+ GType type_id = \
g_@type@_register_static (/* g_intern_static_string */ ("@EnumName@"), values);
- g_once_init_leave (&g_define_type_id__volatile, g_define_type_id);
+ g_once_init_leave (&g_define_type_id, type_id);
}
- return g_define_type_id__volatile;
+ return g_define_type_id;
}
/*** END value-tail ***/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]