[network-manager-fortisslvpn/th/gtk-split-and-log-bgo771544: 7/25] src: avoid compiler warning about unused variable
- From: Thomas Haller <thaller src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-fortisslvpn/th/gtk-split-and-log-bgo771544: 7/25] src: avoid compiler warning about unused variable
- Date: Fri, 16 Sep 2016 15:53:05 +0000 (UTC)
commit da0fa7dee8945b13703ae9d3ccef2213c4f26915
Author: Thomas Haller <thaller redhat com>
Date: Fri Sep 16 00:13:21 2016 +0200
src: avoid compiler warning about unused variable
src/nm-fortisslvpn-service.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/nm-fortisslvpn-service.c b/src/nm-fortisslvpn-service.c
index 509118f..b95e6ae 100644
--- a/src/nm-fortisslvpn-service.c
+++ b/src/nm-fortisslvpn-service.c
@@ -156,7 +156,6 @@ validate_one_property (const char *key, const char *value, gpointer user_data)
for (i = 0; info->table[i].name; i++) {
ValidProperty prop = info->table[i];
- long int tmp;
if (strcmp (prop.name, key))
continue;
@@ -183,7 +182,7 @@ validate_one_property (const char *key, const char *value, gpointer user_data)
return; /* valid */
case G_TYPE_UINT:
errno = 0;
- tmp = strtol (value, NULL, 10);
+ (void) strtol (value, NULL, 10);
if (errno == 0)
return; /* valid */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]