[libgweather/wip/hadess/fixes: 13/13] gweather: Fix build warning wrt g_autoptr() usage
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgweather/wip/hadess/fixes: 13/13] gweather: Fix build warning wrt g_autoptr() usage
- Date: Tue, 12 Jan 2021 09:53:05 +0000 (UTC)
commit 54fbc71f340bf3333844ed9224bfe8f02eac0fdc
Author: Bastien Nocera <hadess hadess net>
Date: Tue Jan 12 10:52:09 2021 +0100
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 ***}
libgweather/gweather-location.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/libgweather/gweather-location.c b/libgweather/gweather-location.c
index 0988ffc7..d29959fe 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]