summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrbuj <[email protected]>2022-07-24 12:13:21 +0200
committerraveit65 <[email protected]>2023-04-15 11:49:03 +0200
commit9b7c8d11cfb4e394b1be780246abf49d8117f19a (patch)
treeb09121d49e9f737bb5444c83783c9a649fc05598
parentd1e1b1d5ea6f53dae1066a3063c17c519e3792cc (diff)
downloadlibmateweather-9b7c8d11cfb4e394b1be780246abf49d8117f19a.tar.bz2
libmateweather-9b7c8d11cfb4e394b1be780246abf49d8117f19a.tar.xz
Fix -Wincompatible-pointer-types-discards-qualifiers warning
-rw-r--r--libmateweather/mateweather-location.c8
-rw-r--r--libmateweather/mateweather-timezone.c8
2 files changed, 8 insertions, 8 deletions
diff --git a/libmateweather/mateweather-location.c b/libmateweather/mateweather-location.c
index da5fc8f..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;
}
/**
diff --git a/libmateweather/mateweather-timezone.c b/libmateweather/mateweather-timezone.c
index a87c011..2754728 100644
--- a/libmateweather/mateweather-timezone.c
+++ b/libmateweather/mateweather-timezone.c
@@ -285,16 +285,16 @@ mateweather_timezone_unref (MateWeatherTimezone *zone)
GType
mateweather_timezone_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 ("MateWeatherTimezone"),
(GBoxedCopyFunc) mateweather_timezone_ref,
(GBoxedFreeFunc) mateweather_timezone_unref);
- g_once_init_leave (&type_volatile, type);
+ g_once_init_leave (&initialization_value, type);
}
- return type_volatile;
+ return initialization_value;
}
/**