[libgweather/wjt/find_nearest_city-unused-variable] location: Remove unused world variable
- From: Will Thompson <wjt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgweather/wjt/find_nearest_city-unused-variable] location: Remove unused world variable
- Date: Wed, 29 Dec 2021 10:59:42 +0000 (UTC)
commit 3bfe9d60e1365c9fb28c4d64dc93d2cfe1cdf83b
Author: Will Thompson <will willthompson co uk>
Date: Wed Dec 29 10:56:09 2021 +0000
location: Remove unused world variable
Prior to 248e701f ("Remove nullable instance arguments"), this variable
was used if the instance argument is NULL.
Now it is conceptually unused. Unfortunately -Wunused does not report it
as such because it *is* used by the g_autoptr() cleanup function.
libgweather/gweather-location.c | 1 -
1 file changed, 1 deletion(-)
---
diff --git a/libgweather/gweather-location.c b/libgweather/gweather-location.c
index 3a174c53..5bdd5df0 100644
--- a/libgweather/gweather-location.c
+++ b/libgweather/gweather-location.c
@@ -687,7 +687,6 @@ gweather_location_find_nearest_city (GWeatherLocation *loc,
double lat,
double lon)
{
- g_autoptr (GWeatherLocation) world = NULL;
/* The data set really isn't too big. Don't concern ourselves
* with a proper nearest neighbors search. Instead, just do
* an O(n) search. */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]