[libgweather/static-fixes: 6/6] Remove unused assignment
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgweather/static-fixes: 6/6] Remove unused assignment
- Date: Fri, 12 Nov 2021 13:51:46 +0000 (UTC)
commit aa109c9960522952021c0234491badfb63a6bf6e
Author: Emmanuele Bassi <ebassi gnome org>
Date: Fri Nov 12 13:50:52 2021 +0000
Remove unused assignment
The iteration variable is re-initialised immediately as part of the
loop.
libgweather/weather-metar.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/libgweather/weather-metar.c b/libgweather/weather-metar.c
index e82a9179..eaa71250 100644
--- a/libgweather/weather-metar.c
+++ b/libgweather/weather-metar.c
@@ -480,7 +480,7 @@ metar_parse (gchar *metar, GWeatherInfo *info)
{
gchar *p;
//gchar *rmk;
- gint i, i2;
+ gint i2;
gchar *tokp;
g_return_val_if_fail (info != NULL, FALSE);
@@ -501,7 +501,6 @@ metar_parse (gchar *metar, GWeatherInfo *info)
}
p = metar;
- i = TIME_RE;
while (*p) {
int token_start, token_end;
@@ -509,7 +508,7 @@ metar_parse (gchar *metar, GWeatherInfo *info)
token_start = strlen (p);
token_end = token_start;
- for (i = 0; i < RE_NUM; i++) {
+ for (int i = 0; i < RE_NUM; i++) {
GMatchInfo *match_info;
if (g_regex_match_full (metar_re[i], p, -1, 0, 0, &match_info, NULL)) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]