[gnome-terminal/gnome-43] build: Remove erroneous volatile
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-terminal/gnome-43] build: Remove erroneous volatile
- Date: Mon, 22 Aug 2022 20:00:03 +0000 (UTC)
commit 4259e2d86d092901224dea081a96bafb65c4f728
Author: Christian Persch <chpe src gnome org>
Date: Mon Aug 22 21:59:13 2022 +0200
build: Remove erroneous volatile
(cherry picked from commit 4e3016e0493538ccb399e613e90d8d0cd2ae874c)
src/terminal-type-builtins.cc.template | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/terminal-type-builtins.cc.template b/src/terminal-type-builtins.cc.template
index 1a76b342..00c0276a 100644
--- a/src/terminal-type-builtins.cc.template
+++ b/src/terminal-type-builtins.cc.template
@@ -16,9 +16,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 ***/
@@ -27,15 +27,15 @@ GType
/*** END value-production ***/
/*** BEGIN value-tail ***/
- { 0, NULL, NULL }
+ { 0, nullptr, nullptr }
};
GType g_define_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__, g_define_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]