[nautilus/wip/oholy/drop-volatile: 9/9] Drop use of volatile




commit 9b733dd9df9d6d9805c56749d05ada15a7560ef4
Author: Ondrej Holy <oholy redhat com>
Date:   Wed Jan 13 13:22:58 2021 +0100

    Drop use of volatile
    
    The `fedora rawhide` CI job currently fails because of usage of the
    `volatile` qualifier. Let's drop the `volatile` qualifier as it doesn't
    help anyway. It was dropped in GLib as well, see:
    https://gitlab.gnome.org/GNOME/glib/-/merge_requests/1719
    
    Fixes: https://gitlab.gnome.org/GNOME/nautilus/-/issues/1741

 src/nautilus-enum-types.c.template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/nautilus-enum-types.c.template b/src/nautilus-enum-types.c.template
index 00155ca04..9d8ac838b 100644
--- a/src/nautilus-enum-types.c.template
+++ b/src/nautilus-enum-types.c.template
@@ -13,7 +13,7 @@
 GType
 @enum_name@_get_type (void)
 {
-    static volatile GType type_once = 0;
+    static GType type_once = 0;
 
     if (g_once_init_enter (&type_once))
     {


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