[msitools] libmsi: fix invalid `volatile` usage



commit e392194f54966a86aef5a0fa9d6f5540a6abfba2
Author: Marc-André Lureau <marcandre lureau redhat com>
Date:   Mon Jul 11 12:19:55 2022 +0400

    libmsi: fix invalid `volatile` usage
    
    Signed-off-by: Marc-André Lureau <marcandre lureau redhat com>

 libmsi/libmsi-enums.c.etemplate | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/libmsi/libmsi-enums.c.etemplate b/libmsi/libmsi-enums.c.etemplate
index 04d7cf1..f7ae78e 100644
--- a/libmsi/libmsi-enums.c.etemplate
+++ b/libmsi/libmsi-enums.c.etemplate
@@ -31,9 +31,9 @@
 GType
 @enum_name@_get_type (void)
 {
-  static volatile gsize g_define_type_id__volatile = 0;
+  static gsize static_g_define_type_id = 0;
 
-  if (g_once_init_enter (&g_define_type_id__volatile))
+  if (g_once_init_enter (&static_g_define_type_id))
     {
       static const G@Type@Value values[] = {
 /*** END value-header ***/
@@ -47,10 +47,10 @@ GType
       };
       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 (&static_g_define_type_id, g_define_type_id);
     }
 
-  return g_define_type_id__volatile;
+  return static_g_define_type_id;
 }
 
 /*** END value-tail ***/


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]