[pango/compiler-warning] Quiet a compiler warning




commit 12611bfed7beccbb514341e07637bf2a4ebf70a6
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Mar 31 17:47:43 2021 -0400

    Quiet a compiler warning
    
    GLib now causes compiler warnings when passing a
    volatile variable to g_atomic_ apis. Drop the volatile
    to pacify gcc.

 pango/pango-enum-types.c.template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/pango/pango-enum-types.c.template b/pango/pango-enum-types.c.template
index 0d55ef74..b71b0a39 100644
--- a/pango/pango-enum-types.c.template
+++ b/pango/pango-enum-types.c.template
@@ -13,7 +13,7 @@
 GType
 @enum_name@_get_type (void)
 {
-  static volatile gsize g_define_type_id__volatile = 0;
+  static gsize g_define_type_id__volatile = 0;
 
   if (g_once_init_enter (&g_define_type_id__volatile))
     {


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