[network-manager-fortisslvpn/th/gtk-split-and-log-bgo771544: 8/26] src: avoid compiler warning about unused variable



commit 3f3145e00e4046f1b3d081012d4e52df7a6d0c8c
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]