all: drop unused variables
Keeps build with GCC 8 happy. mm-base-call.c:758:18: warning: variable 'response' set but not used [-Wunused-but-set-variable] mm-base-call.c:822:18: warning: variable 'response' set but not used [-Wunused-but-set-variable] mm-base-sms.c:908:18: warning: variable 'response' set but not used [-Wunused-but-set-variable] mm-sms-list.c:331:25: warning: variable 'ctx' set but not used [-Wunused-but-set-variable] mm-iface-modem-messaging.c:1210:21: warning: variable 'storage_ctx' set but not used [-Wunused-but-set-variable] huawei/mm-plugin-huawei.c:183:18: warning: variable 'response' set but not used [-Wunused-but-set-variable] ublox/mm-plugin-ublox.c:161:24: warning: variable 'response' set but not used [-Wunused-but-set-variable] ublox/mm-plugin-ublox.c:159:24: warning: variable 'ctx' set but not used [-Wunused-but-set-variable] icera/mm-modem-helpers-icera.c:218:25: warning: variable 'first_free' set but not used [-Wunused-but-set-variable] novatel/mm-common-novatel.c:50:18: warning: variable 'response' set but not used [-Wunused-but-set-variable]
This commit is contained in:
committed by
Aleksander Morgado
parent
5072db3418
commit
b39dd2ec05
@@ -215,7 +215,7 @@ mm_icera_parse_ipdpaddr_response (const gchar *response,
|
||||
GError *local = NULL;
|
||||
gboolean success = FALSE;
|
||||
char **items;
|
||||
guint num_items, i, first_free;
|
||||
guint num_items, i;
|
||||
gint num;
|
||||
|
||||
g_return_val_if_fail (out_ip4_config, FALSE);
|
||||
@@ -240,7 +240,7 @@ mm_icera_parse_ipdpaddr_response (const gchar *response,
|
||||
|
||||
/* Strip any spaces on elements; inet_pton() doesn't like them */
|
||||
num_items = g_strv_length (items);
|
||||
for (i = 0, first_free = 0; i < num_items; i++)
|
||||
for (i = 0; i < num_items; i++)
|
||||
items[i] = g_strstrip (items[i]);
|
||||
|
||||
if (num_items < 7) {
|
||||
|
||||
Reference in New Issue
Block a user