[libgweather/ebassi/gtk4: 4/56] Drop unnecessary `volatile`




commit 447c824abd3b76a74cebf69ee28ff49320ff899e
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Tue Oct 5 17:34:01 2021 +0100

    Drop unnecessary `volatile`
    
    Newer versions of GLib and GCC will complain.

 libgweather/gweather-location.c | 2 +-
 libgweather/gweather-timezone.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libgweather/gweather-location.c b/libgweather/gweather-location.c
index 3b7fb9db..bbdb0049 100644
--- a/libgweather/gweather-location.c
+++ b/libgweather/gweather-location.c
@@ -323,7 +323,7 @@ gweather_location_unref (GWeatherLocation *loc)
 GType
 gweather_location_get_type (void)
 {
-    static volatile gsize type_volatile = 0;
+    static gsize type_volatile = 0;
 
     if (g_once_init_enter (&type_volatile)) {
        GType type = g_boxed_type_register_static (
diff --git a/libgweather/gweather-timezone.c b/libgweather/gweather-timezone.c
index 0f358cf0..aa867563 100644
--- a/libgweather/gweather-timezone.c
+++ b/libgweather/gweather-timezone.c
@@ -262,7 +262,7 @@ gweather_timezone_unref (GWeatherTimezone *zone)
 GType
 gweather_timezone_get_type (void)
 {
-    static volatile gsize type_volatile = 0;
+    static gsize type_volatile = 0;
 
     if (g_once_init_enter (&type_volatile)) {
        GType type = g_boxed_type_register_static (


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