[NetworkManager-openconnect: 1/4] properties: fix "-Wunused-variable" warning in notify_plugin_info_set()



commit 504a6625feaf20a5430a08bac183c82271e5633c
Author: Thomas Haller <thaller redhat com>
Date:   Sun Feb 10 09:40:38 2019 +0100

    properties: fix "-Wunused-variable" warning in notify_plugin_info_set()
    
        nm-openconnect-editor-plugin.c:383:11: error: unused variable 'j' [-Werror,-Wunused-variable]
                guint i, j;
                         ^

 properties/nm-openconnect-editor-plugin.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/properties/nm-openconnect-editor-plugin.c b/properties/nm-openconnect-editor-plugin.c
index f230a8b..63e1637 100644
--- a/properties/nm-openconnect-editor-plugin.c
+++ b/properties/nm-openconnect-editor-plugin.c
@@ -380,7 +380,7 @@ notify_plugin_info_set (NMVpnEditorPlugin *plugin,
                         NMVpnPluginInfo *plugin_info)
 {
        OpenconnectEditorPluginPrivate *priv = OPENCONNECT_EDITOR_PLUGIN_GET_PRIVATE (plugin);
-       guint i, j;
+       guint i;
 
        if (!plugin_info)
                return;
@@ -402,6 +402,7 @@ notify_plugin_info_set (NMVpnEditorPlugin *plugin,
                }
 #else
                const char *supported_protocols = nm_vpn_plugin_info_lookup_property (plugin_info, 
"openconnect", "supported-protocols");
+               guint j;
 
                priv->supported_protocols = supported_protocols
                    ? g_strsplit_set (supported_protocols, ",", -1)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]