diff options
author | Bastien Nocera <hadess@hadess.net> | 2021-01-12 10:52:09 +0100 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2021-01-12 10:52:09 +0100 |
commit | 54fbc71f340bf3333844ed9224bfe8f02eac0fdc (patch) | |
tree | 6e8c8cdc73d7b32821703cf14b75d57facc945ef | |
parent | 6ad87bfac315c3f7f19667bc2d37aa1d507580a5 (diff) | |
download | libgweather-54fbc71f340bf3333844ed9224bfe8f02eac0fdc.tar.gz |
gweather: Fix build warning wrt g_autoptr() usage
libgweather/gweather-location.c: In function ‘gweather_location_common_deserialize’:
libgweather/gweather-location.c:1591:5: warning: passing argument 1 of ‘glib_autoptr_cleanup_GWeatherLocation’ from incompatible pointer type [-Wincompatible-pointer-types]
1591 | g_autoptr(GWeatherLocation) *by_station_code = NULL;
| ^~~~~~~~~
| |
| GWeatherLocation *** {aka struct _GWeatherLocation ***}
-rw-r--r-- | libgweather/gweather-location.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libgweather/gweather-location.c b/libgweather/gweather-location.c index 0988ffc..d29959f 100644 --- a/libgweather/gweather-location.c +++ b/libgweather/gweather-location.c @@ -1588,7 +1588,7 @@ gweather_location_common_deserialize (GWeatherLocation *world, gdouble parent_latitude, gdouble parent_longitude) { - g_autoptr(GWeatherLocation) *by_station_code = NULL; + g_autoptr(GWeatherLocation) by_station_code = NULL; DbWorldLocByMetarRef loc_by_metar; GWeatherLocation *found; gsize i; |