[gnome-terminal] build: Remove erroneous volatile



commit 4e3016e0493538ccb399e613e90d8d0cd2ae874c
Author: Christian Persch <chpe src gnome org>
Date:   Mon Aug 22 21:59:13 2022 +0200

    build: Remove erroneous volatile

 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]