diff options
Diffstat (limited to 'libmateweather/mateweather-location.c')
-rw-r--r-- | libmateweather/mateweather-location.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/libmateweather/mateweather-location.c b/libmateweather/mateweather-location.c index 30d33bd..9c13c13 100644 --- a/libmateweather/mateweather-location.c +++ b/libmateweather/mateweather-location.c @@ -397,16 +397,16 @@ mateweather_location_unref (MateWeatherLocation *loc) GType mateweather_location_get_type (void) { - static volatile gsize type_volatile = 0; + static gsize initialization_value = 0; - if (g_once_init_enter (&type_volatile)) { + if (g_once_init_enter (&initialization_value)) { GType type = g_boxed_type_register_static ( g_intern_static_string ("MateWeatherLocation"), (GBoxedCopyFunc) mateweather_location_ref, (GBoxedFreeFunc) mateweather_location_unref); - g_once_init_leave (&type_volatile, type); + g_once_init_leave (&initialization_value, type); } - return type_volatile; + return initialization_value; } /** @@ -502,7 +502,6 @@ mateweather_location_get_children (MateWeatherLocation *loc) return &no_children; } - /** * mateweather_location_free_children: * @loc: a #MateWeatherLocation |